From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gary Thomas To: "Trenton D. Adams" Cc: eCos Discussion Subject: RE: [ECOS] TCP/IP Stack packet regrouping Date: Mon, 16 Jul 2001 13:39:00 -0000 Message-id: References: <000201c10e36$941324f0$090110ac@TRENT> X-SW-Source: 2001-07/msg00481.html On 16-Jul-2001 Trenton D. Adams wrote: > > > > > If not, in blocking mode it will most likely appear to > > happen all at > > > one time right? > > > > Not necessarily. read() can return early if _some_ data is > > available. > > Are you saying that read () will return if ONLY some of the data is > there, but will complete successfully if it's all there? > > > So, to summarize what you said. > > Sending generally will send it all at once, and there's no need for a > loop for the outgoing buffer? > Receiving I should always do the loop just in case? Yes, these comments are accurate, but only for TCP connections. Other types of connections will have completely different behaviour/semantics.