home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!saimiri.primate.wisc.edu!copper!slate!mbarkah
- From: mbarkah@slate.mines.colorado.edu (Ade Barkah)
- Newsgroups: comp.unix.questions
- Subject: Re: Sockets: How do I detect when it has unexpectedly closed
- Message-ID: <1993Jan13.040639.18416@slate.mines.colorado.edu>
- Date: 13 Jan 93 04:06:39 GMT
- References: <1993Jan12.234227.29729@netcom.com>
- Organization: Colorado School of Mines
- Lines: 18
-
- bilan@netcom.com (Steve Bilan) writes:
- : vasco@bvl.pt (antonio vasconcelos) writes:
-
- : >
- : > signal(SIGINT,byebye);
- : > signal(SIGPIPE,snifserver);
- : >
- :
- : That works fine for an app with one socket, but if you have an
- : app with two (or more) sockets open, how can you detect an abnormal
- : socket close and know which socket it's on?
-
- Perhaps the select() function call could help.
-
- -Ade.
- --
- Internet : mbarkah@slate.mines.colorado.edu (NeXT Mailable)
- CompuServe: 74160,3404
-