ext/client.c in origen_sim-0.5.5 vs ext/client.c in origen_sim-0.6.0

- old
+ new

@@ -7,10 +7,11 @@ #include <sys/types.h> #include <sys/socket.h> #include <sys/un.h> #include <unistd.h> #include <time.h> +#include <string.h> static int sock; static uint64_t msg_count = 0; static uint64_t last_msg_count = 0; @@ -60,10 +61,9 @@ /// Send a message to the master Origen process. /// NOTE: THE CALLER IS RESPONSIBLE FOR ADDING A \n TERMINATOR TO /// THE MESSAGE -/// to the data as this function will do it for you. int client_put(char* data) { if(send(sock, data , strlen(data), 0) < 0) { return 1; } return 0;