home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / question / 15445 < prev    next >
Encoding:
Text File  |  1993-01-12  |  1.0 KB  |  28 lines

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