Hi, I'm having loads of problems with sockets!
I'm writing a C client program, and have a third party server program, and my own test harness server. When I call recv() on a socket connected to my test harness server program, I get a large string of data returned all in one go. When I use the same code to call the other server, I get the same amount of data but I have to call recv() multiple times to get it all! WHY?!
Also, I can't seem to use getsockopt() to query the values for SO_RCVBUF and SO_RCVTIMEO. They just come back with values of 0. Is this a weird Unixware default thing, or am I missing something here?
If you can, please help!
I'm writing a C client program, and have a third party server program, and my own test harness server. When I call recv() on a socket connected to my test harness server program, I get a large string of data returned all in one go. When I use the same code to call the other server, I get the same amount of data but I have to call recv() multiple times to get it all! WHY?!
Also, I can't seem to use getsockopt() to query the values for SO_RCVBUF and SO_RCVTIMEO. They just come back with values of 0. Is this a weird Unixware default thing, or am I missing something here?
If you can, please help!