Winsock programming problem
Posted on 2005-04-07
I am writing a simple clinet/server program by using winsock.
If TCP is being used, is this truth that the recv function may be called twice sometimes in order to receive the whole packets sent by another side.
e.g A side is sending 2048 bytes, I may receive only 1000 bytes in my first call of the recv function. Then I receive the remaining 1048 bytes in another call of the recv function.
Is this truth?
Please advise. Thanks.