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);
Type: Posts; User: pheeze
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);
Erm, sorry about that! It ought to be sizeof(px), shouldn't it. I edited that in.
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...