Results 1 to 3 of 3
Hi all
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 ...
- 03-04-2011 #1Just Joined!
- Join Date
- Feb 2010
- Posts
- 2
Socket UDP :recvfrom()
Hi all
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...
- 03-04-2011 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,961
Read the full 100 bytes, and then break the resulting message up into the 60+40 byte segments?
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 03-08-2011 #3Just Joined!
- Join Date
- Feb 2010
- Posts
- 2


Reply With Quote

