home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / question / 15139 < prev    next >
Encoding:
Text File  |  1993-01-04  |  855 b   |  21 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!usc!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!void!ejohnson
  3. From: ejohnson@void.ncsa.uiuc.edu (Eric E. Johnson)
  4. Subject: Sockets: How do I detect when it has unexpectedly closed
  5. Message-ID: <ejohnson.726149387@void>
  6. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  7. Organization: University of Illinois at Urbana
  8. Date: Mon, 4 Jan 1993 12:09:47 GMT
  9. Lines: 10
  10.  
  11. I know how to close a connection.  That's easy.  My question is: how do
  12. I detect that a socket (AF_INET, SOCK_STREAM) has been unexpectedly 
  13. disconnected from its remote client?  I'm assuming a case where the
  14. remote client has crashed and was unable to send out a "closing"
  15. message.
  16.  
  17. Eric
  18. -- 
  19. Eric E Johnson             | "The uncontested absurdities of today are the
  20. ejohnson@a.cs.uiuc.edu     |  accepted slogans of tomorrow." - Ayn Rand
  21.