This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Cancelling a Blocking network call
- To: "Trenton D. Adams" <tadams at extremeeng dot com>
- Subject: Re: [ECOS] Cancelling a Blocking network call
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Tue, 21 Aug 2001 00:34:25 +0100
- Cc: "'Gary Thomas'" <gthomas at redhat dot com>,"'eCos Discussion'" <ecos-discuss at sourceware dot cygnus dot com>
- References: <005801c129c6$78d06030$090110ac@TRENT>
"Trenton D. Adams" wrote:
>
> Let's say I call write () on a socket, and the other end of the
> connection hangs. I might want to cancel that call. If the write ()
> was done in another thread then yet another thread might be able to
> cancel the write () call.
You could include the fileio and posix packages and use signals.
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