I have a scenario where multiple clients connect to a TCP server. When any of the clients sends a packet to the server, the server is supposed to have a retransmission timer and keep sending that...
Type: Posts; User: ddd
I have a scenario where multiple clients connect to a TCP server. When any of the clients sends a packet to the server, the server is supposed to have a retransmission timer and keep sending that...
Ok, thanks for your replies.
Is there a way I can change the packet length to be variable based on the length of 'name' and 'data' strings instead of fixing 100 and 200 as the lengths. I tried...
I have the following packet format:
1B 4B 1B 1B string 2 bytes 1B string
+------+----------+---+--------+---~~--+---------+--------+---~~---+
| type | lifetime |...
I have the following code where strcat is causing problem.
char* tokens = strtok(buf, "+");
int n = 0;
int type = 0;
char* name = "";
char* lifetime = "";
...
I'm getting a segmentation fault when I do free() in the delete function of the following linked list implementation. Please take a look and tell me where I am going wrong.
typedef struct node {...
EDIT: I have figured that when the daemon sends the data, the select() on the client side returns that the socket is readable, but recv() is blocking, thats the reason I'm not getting data on the...
I have a server daemon listening on a TCP unix domain/local socket. Multiple clients running on the same machine connect to it. The daemon is also bound to a UDP Internet socket. Whenever the daemon...