Click to See Complete Forum and Search --> : WINSOCK Problem!!!!


Rinks
May 5th, 1999, 08:55 AM
I have a Client Server Program written using WinSock.The problem is while Data Transfer,
I have to transfer some 9000 bytes in one shot,the client is writing all the data on to socket in one shot but the server
reads only some 3000 bytes at a time. Can anyone suggest me how to read all the 9000 bytes in one shot at the server end also.
I have tried SetSockOpt and GetSockOpt but nothing works.

Thanks
Rinks.

mdwilliams
May 5th, 1999, 12:10 PM
You are not guaranteed to get all of the data at one time, you need to keep reading from the port until all of the data has been read.