home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!usc!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!void!ejohnson
- From: ejohnson@void.ncsa.uiuc.edu (Eric E. Johnson)
- Subject: Sockets: How do I detect when it has unexpectedly closed
- Message-ID: <ejohnson.726149387@void>
- Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
- Organization: University of Illinois at Urbana
- Date: Mon, 4 Jan 1993 12:09:47 GMT
- Lines: 10
-
- 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.
-
- Eric
- --
- Eric E Johnson | "The uncontested absurdities of today are the
- ejohnson@a.cs.uiuc.edu | accepted slogans of tomorrow." - Ayn Rand
-