Re: using winsock

Are you using UDP or TCP as your transport protocol?

My guess is you are using TCP, the reliable protocol. If that's the case...

Keep in mind that TCP is "stream-based" and no matter how much data you 
give it to send, it may send as little as one character or as much as 
everything that you give to it. You have to check the return value of 
send() to determine how many bytes actually got sent.

Please see the Winsock Programmers' FAQ at:
http://www.cyberport.com/~tangent/programming/winsock/
particularly the article at:
http://www.cyberport.com/~tangent/programming/winsock/articles/effective-tcp 
.html

Received on Wednesday, 24 May 2000 08:54:42 UTC