From: "Trenton D. Adams" <tadams@extremeeng.com>
To: "'Jonathan Larmour'" <jlarmour@redhat.com>
Cc: "'eCos mailing list'" <ecos-discuss@sources.redhat.com>
Subject: RE: [ECOS] Misguided error code in net code?
Date: Fri, 20 Jul 2001 08:06:00 -0000 [thread overview]
Message-ID: <000701c1112d$665a29b0$090110ac@TRENT> (raw)
In-Reply-To: <3B584377.BA846EF2@redhat.com>
>
> "Trenton D. Adams" wrote:
> >
> > I might just do that if I have problems in the future with it when
I
> get
> > down to actually writing some real net code. The thing I find
weird,
> is
> > how you supposed to tell if a connection has been reset? I
suppose I
> > could go over to the other system and see if it disconnected, but
> that's
> > just a work around.
>
> You could use select() or possibly write() may give different
answers.
>
I just used write (), and it returns 360 ETIMEDOUT. This is slightly
better. I (me alone ;) ) would expect that an ETIMEDOUT error should
only occur when the connection is still there but there is no response
from the other end.
When this happens on Linux or windows though, I do actually get a
ECONNRESET. I'm not positive about the Linux side, but windows
definitely does.
next prev parent reply other threads:[~2001-07-20 8:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-19 15:40 Trenton D. Adams
2001-07-19 16:11 ` Gary Thomas
2001-07-19 19:54 ` Jonathan Larmour
2001-07-20 7:37 ` Trenton D. Adams
2001-07-20 7:43 ` Jonathan Larmour
2001-07-20 8:06 ` Trenton D. Adams [this message]
2001-07-20 8:14 ` Jonathan Larmour
2001-07-20 7:32 ` Trenton D. Adams
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='000701c1112d$665a29b0$090110ac@TRENT' \
--to=tadams@extremeeng.com \
--cc=ecos-discuss@sources.redhat.com \
--cc=jlarmour@redhat.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).