home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.wizards
- 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
- From: wv@dasc.nl (Wouter Visscher)
- Subject: Detection broken tcp connection
- Message-ID: <wv.728144099@bambam>
- Summary: Detection broken tcp connection in an application
- Keywords: tcp connection broken
- Organization: Data Sciences B.V.
- Date: Wed, 27 Jan 1993 14:14:59 GMT
- Lines: 23
-
- Dear wizards,
-
- I have te following situation:
- A tcp connect, with keep_alive option and non blocking mode.
-
- If the ethernet fails ( pull out a drop cable for instance) I want
- my application to detect a broken connection.
-
- Want can I expect in my application:
- A - from a select
- B - from a send
- C - form a recv
- D - signals
- E - Any other means to determine the broken connection
-
- Also a indication of the times involved on sunos 4.1 .
-
- The manuals are not to clear on this subject, testing showed the above calls
- i.e. select, send, recv did not return error codes indicating a problem.
- Mind you if an error code is only return once I might have missed it during
- this test
-
-
- #include <stddisclaimer.h> This might not be the view of my employer.
-