Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with socket timeout on Unixware

Status
Not open for further replies.

stuf77

Programmer
Jul 20, 2002
5
GB
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!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top