
Winsock receive buffer size
On 29 Sep 1997 14:23:16 GMT, "Robert W. Steele (MOS)"
Quote:
>Is there some hidden property for setting the receive buffer size for the
>Winsock control??
I don't believe the MS control will let you set the buffer size,
Mabry's does. But I don't think that's the problem anyway...
Quote:
>I ask because my client app seems to only be able to receive at most 100
>bytes at a time (the server is repeatedly sending the same 170 byte
>packet).
The default winsock buffer size is 8K. But you need to be aware that
the socket stack may (and often does) transmit your data in packets of
whatever size it chooses upto the buffer size. Apparently the server
is sending 100 bytes in one packet and 70 in the next. That's
expected behaviour and you need to handle it.
Zane