home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / question / 15487 < prev    next >
Encoding:
Internet Message Format  |  1993-01-13  |  918 b 

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!saimiri.primate.wisc.edu!copper!slate!mbarkah
  2. From: mbarkah@slate.mines.colorado.edu (Ade Barkah)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: Sockets: How do I detect when it has unexpectedly closed
  5. Message-ID: <1993Jan13.040639.18416@slate.mines.colorado.edu>
  6. Date: 13 Jan 93 04:06:39 GMT
  7. References: <1993Jan12.234227.29729@netcom.com>
  8. Organization: Colorado School of Mines
  9. Lines: 18
  10.  
  11. bilan@netcom.com (Steve Bilan) writes:
  12. : vasco@bvl.pt (antonio vasconcelos) writes:
  13.  
  14. : >
  15. : >    signal(SIGINT,byebye);
  16. : >    signal(SIGPIPE,snifserver);
  17. : >
  18. : That works fine for an app with one socket, but if you have an
  19. : app with two (or more) sockets open, how can you detect an abnormal
  20. : socket close and know which socket it's on?
  21.  
  22. Perhaps the select() function call could help.
  23.  
  24. -Ade.
  25. -- 
  26. Internet  : mbarkah@slate.mines.colorado.edu    (NeXT Mailable)
  27. CompuServe: 74160,3404
  28.