Im using winsock and recv() function to receive some data from the client. The return value of recv() indicates that it has received 10000+ bytes and put it in to “var buffer”.
Then when I create a string that is equal to that “var buffer”, the length of that string becomes much less than the bytes received from the function above.
So probably, I lose a lot of data? What should I do differently?
Best regards