This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Misguided error code in net code?
- To: "Trenton D. Adams" <tadams at extremeeng dot com>
- Subject: Re: [ECOS] Misguided error code in net code?
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Fri, 20 Jul 2001 15:43:03 +0100
- Cc: 'eCos mailing list' <ecos-discuss at sources dot redhat dot com>
- Organization: Red Hat UK Ltd.
- References: <000401c11129$7159dad0$090110ac@TRENT>
"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.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
Come to the Red Hat TechWorld open source conference in Brussels!
Keynotes, techie talks and exhibitions http://www.redhat-techworld.com/