For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > September 2005 > Datagram sendto and recvfrom question









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Datagram sendto and recvfrom question

2005-09-24, 6:58 pm

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
Barry Margolin

2005-09-24, 9:56 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 ***
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com