Search:

Type: Posts; User: pheeze

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    4,630

    I have realised I'm totally wrong there. Now I...

    I have realised I'm totally wrong there. Now I have:




    //Server side
    int n = 5
    int *value = n;
    int len = sizeof(n);
    send(sa, value, len, 0);
  2. Replies
    5
    Views
    4,630

    Erm, sorry about that! It ought to be sizeof(px),...

    Erm, sorry about that! It ought to be sizeof(px), shouldn't it. I edited that in.
  3. Replies
    5
    Views
    4,630

    Need help with sending an int via sockets.

    Howdy all,

    I've been having touble trying to get my head around how (UNIX) sockets actually send and receive an int or an int variable via a streaming socket.

    I have a value (int px) and I have...
Results 1 to 3 of 3