home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / programm / 4667 < prev    next >
Encoding:
Internet Message Format  |  1992-09-15  |  740 b 

  1. Path: sparky!uunet!contex!felix.contex.com!avinash
  2. From: avinash@felix.contex.com (Avinash Chopde)
  3. Newsgroups: comp.unix.programmer
  4. Subject: Detecting a broken (socket) connection before write()
  5. Message-ID: <2948@contex.contex.com>
  6. Date: 15 Sep 92 19:39:05 GMT
  7. Sender: news@contex.contex.com
  8. Lines: 12
  9.  
  10. I am looking for functions similar to feof() ferror() for file
  11. descriptors.
  12. For example, if a socket fd connection has been broken, writing
  13. to that fd will result in a Broken Pipe signal.
  14. I would like to detect the broken pipe before writing to it, is this
  15. possible at all ? 
  16.  
  17. Thanks for any pointers....
  18. -- 
  19. ---------------------------
  20. Avinash Chopde         office : 617 246 1776x5582
  21. avinash@contex.com     (...!uunet!contex!avinash)
  22.