home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / wizards / 5669 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.2 KB  |  36 lines

  1. Newsgroups: comp.unix.wizards
  2. Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!sun4nl!dascnl!bambam!wv
  3. From: wv@dasc.nl (Wouter Visscher)
  4. Subject: Detection broken tcp connection
  5. Message-ID: <wv.728144099@bambam>
  6. Summary: Detection broken tcp connection in an application
  7. Keywords: tcp connection broken
  8. Organization: Data Sciences B.V.
  9. Date: Wed, 27 Jan 1993 14:14:59 GMT
  10. Lines: 23
  11.  
  12. Dear wizards,
  13.  
  14. I have te following situation:
  15. A tcp connect, with keep_alive option and non blocking mode.
  16.  
  17. If the ethernet fails ( pull out a drop cable for instance) I want
  18. my application to detect a broken connection.
  19.  
  20. Want can I expect in my application:
  21. A - from a select
  22. B - from a send
  23. C - form a recv
  24. D - signals
  25. E - Any other means to determine the broken connection
  26.  
  27. Also a indication of the times involved on sunos 4.1 .
  28.  
  29. The manuals are not to clear on this subject, testing showed  the above calls
  30. i.e. select, send, recv did not return error codes indicating a problem.
  31. Mind you if an error code is only return once I might have missed it during
  32. this test
  33.  
  34.  
  35. #include <stddisclaimer.h>       This might not be the view of my employer.
  36.