Advertisement

UDP:recvfrom() function

Started by February 15, 2005 12:29 AM
1 comment, last by hplus0603 20 years ago
What the function will return when there are two datagrams recieved each of 50 bytes, i have called recvfrom() function with following parameters, int result=recvfrom(sockfd,buffer,100) ??? what will be in buffer and what will be in result
This should explain it all for ya...
Quote:

http://www.mkssoftware.com/docs/man3/recvfrom.3.asp

Advertisement
In UDP, each datagram is delivered separately. In TCP, data is delivered as a stream.
enum Bool { True, False, FileNotFound };

This topic is closed to new replies.

Advertisement