Search:

Type: Posts; User: ddd

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    3,569

    network packet retransmission

    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...
  2. Replies
    5
    Views
    10,633

    Ok, thanks for your replies. Is there a way I...

    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...
  3. Replies
    5
    Views
    10,633

    constructing and parsing network packet

    I have the following packet format:

    1B 4B 1B 1B string 2 bytes 1B string
    +------+----------+---+--------+---~~--+---------+--------+---~~---+
    | type | lifetime |...
  4. Replies
    2
    Views
    1,831

    strcat causing string to become empty

    I have the following code where strcat is causing problem.


    char* tokens = strtok(buf, "+");
    int n = 0;
    int type = 0;
    char* name = "";
    char* lifetime = "";
    ...
  5. Replies
    2
    Views
    16,506

    Segmentation fault at free()

    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 {...
  6. Replies
    2
    Views
    10,426

    EDIT: I have figured that when the daemon sends...

    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...
  7. Replies
    2
    Views
    10,426

    socket recv() doesnt receive data

    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...
Results 1 to 7 of 7