home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!mcsun!inesc.inesc.pt!dec4pt.puug.pt!bvl!vasco
- From: vasco@bvl.pt (antonio vasconcelos)
- Subject: Re: Sockets: How do I detect when it has unexpectedly closed
- Message-ID: <1993Jan11.200716.14442@bvl.pt>
- Organization: Bolsa de Valores de Lisboa
- X-Newsreader: Tin 1.1 PL4
- References: <ejohnson.726149387@void>
- Date: Mon, 11 Jan 1993 20:07:16 GMT
- Lines: 16
-
- ejohnson@void.ncsa.uiuc.edu (Eric E. Johnson) writes:
- : I know how to close a connection. That's easy. My question is: how do
- : I detect that a socket (AF_INET, SOCK_STREAM) has been unexpectedly
- : disconnected from its remote client? I'm assuming a case where the
- : remote client has crashed and was unable to send out a "closing"
- : message.
-
- The server should receive the broken pipe signal, I have some code with this,
- but I can't find it now. If in 2 or 3 days I don't post it here, please
- remind me via e-mail (to vasco@bvl.pt).
-
- --
- regards,
- ____
- |/asco
- ----------------------------------------------------------------------
-