Hi
I have created a client server application using Winsock2.
Now the problem is that data send by server is not fully received by client in one go. It is received in installments & also not correctly received.
For example, the server application sends 293 bytes of data in a buffer of size 5000.
Now the client receives the data in two installments: Ist--> 625 bytes & IInd--> 4375 bytes.
Logically the first installment of 625 bytes must contain all the 293 bytes of data & second installment of 4375 bytes must be all 0's.
But the problem is that the first installment contains all 0's & second installment contains 293 bytes of data.
Why is this happening.
Also how can i make sure that all the data send by server is received by the client in one go.
Waiting for suggestions
Regards