This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: TCP/IP Stack packet regrouping
- To: "'Jonathan Larmour'" <jlarmour at redhat dot com>
- Subject: RE: [ECOS] TCP/IP Stack packet regrouping
- From: "Trenton D. Adams" <tadams at extremeeng dot com>
- Date: Mon, 16 Jul 2001 14:33:31 -0600
- Cc: "'eCos Discussion'" <ecos-discuss at sourceware dot cygnus dot com>
- Organization: Extreme Engineering
>
> > 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?