public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Grant Edwards <grante@visi.com>
To: "Trenton D. Adams" <tadams@extremeeng.com>
Cc: 'Jonathan Larmour' <jlarmour@redhat.com>,
	'eCos Discussion' <ecos-discuss@sourceware.cygnus.com>,
	'Gary Thomas' <gthomas@redhat.com>
Subject: Re: [ECOS] TCP/IP Stack packet regrouping
Date: Mon, 16 Jul 2001 15:32:00 -0000	[thread overview]
Message-ID: <20010716173347.A11496@visi.com> (raw)
In-Reply-To: <20010716171044.A11299@visi.com>

On Mon, Jul 16, 2001 at 03:44:40PM -0600, Trenton D. Adams wrote:

> I'm reading the Linux documentation on send (), and it says
> that a send () call will block if "the message does not fit
> into the send buffer of the socket".  Which tells me it that it
> is sending the information all at once (from the programmer's
> perspective).  It also says that if it's to big to pass through
> the underlying protocol, it will return with an error of
> EMSGSIZE.  Is this correct or not?

It does appear that a write on a TCP socket under Linux will
block until all of the data is sent -- I tried a single write()
with block sizes up to 16MB, and it blocked until all data was
sent. However, if a signal comes along, the write() gets
interrupted and it returns a partial value.

-- 
Grant Edwards
grante@visi.com

  reply	other threads:[~2001-07-16 15:32 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-16 12:51 Trenton D. Adams
2001-07-16 13:12 ` Grant Edwards
2001-07-16 13:20 ` Jonathan Larmour
2001-07-16 13:33   ` Trenton D. Adams
2001-07-16 13:39     ` Gary Thomas
2001-07-16 13:41       ` Trenton D. Adams
2001-07-16 13:45     ` Jonathan Larmour
2001-07-16 14:26     ` Grant Edwards
2001-07-16 14:36       ` Jonathan Larmour
2001-07-16 14:44       ` Trenton D. Adams
2001-07-16 15:09         ` Grant Edwards
2001-07-16 15:32           ` Grant Edwards [this message]
2001-07-16 15:35             ` Trenton D. Adams
2001-07-16 17:36               ` Grant Edwards
2001-07-16 15:35           ` Trenton D. Adams
2001-07-16 17:43             ` Grant Edwards
2001-07-17  6:06               ` [ECOS] Simulation under CCS (Code Composer Studio) SEBASTIEN ANDRE
2001-07-16 18:13         ` [ECOS] TCP/IP Stack packet regrouping Grant Edwards
2001-07-20  8:10           ` Trenton D. Adams
2001-07-20  8:15             ` Jonathan Larmour

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010716173347.A11496@visi.com \
    --to=grante@visi.com \
    --cc=ecos-discuss@sourceware.cygnus.com \
    --cc=gthomas@redhat.com \
    --cc=jlarmour@redhat.com \
    --cc=tadams@extremeeng.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).