Datagram sendto and recvfrom question

  • Follow


From what I know, using send and recv, they are sometimes that
not all parts of data are sent and receive at once. I wonder if
this is also the case for datagram sendto and recvfrom?

Thanks
0
Reply thone 9/24/2005 11:53:29 PM

In article <6eGdnTdtmM1ke6jeRVn-pA@comcast.com>,
 thone@Tramp.eng.sun.com () wrote:

> From what I know, using send and recv, they are sometimes that
> not all parts of data are sent and receive at once. I wonder if
> this is also the case for datagram sendto and recvfrom?

Datagrams always send and receive the whole datagram.  The only 
exception is if the receive buffer is too small for the datagram.  On 
some systems the excess is discarded, on others it will be retained for 
the next recv or recvfrom to read.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
0
Reply Barry 9/25/2005 2:00:08 AM


1 Replies
344 Views

(page loaded in 0.048 seconds)

Similiar Articles:













7/25/2012 12:58:46 AM


Reply: