Socket UDP :recvfrom()
I am using udp socket. I have this requirement:
I write to a socket 100byte using sendto();
Now I have to read first 60byte and next 40byte from socket.
My problem is when I read 60byte from socket rest of 40 byte get lost.
How to read that...
Read the full 100 bytes, and then break the resulting message up into the 60+40 byte segments?
In the above said problem I dont know how much bytes have been written on socket ,
Originally Posted by Rubberman
I will get request to read some x bytes from socket in that case i shouldnt lose rest of bytes written to socket.