bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to detect, disconnected network connection


From: taraben . a
Subject: how to detect, disconnected network connection
Date: Thu, 08 Jan 2004 11:10:32 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3

Hello,

I have a simple tcp-server program derived from TCPSession.
My problem now is how to detect disconnected sessions.
1. disconnect by client, solved by messages from Wolfgang and Christian. Return 0 bytes read. 2. disconnect by unplugging the network cable. HyperTerminal (my Client on Windows side) detects that the connection lost.

I already tried the bad() function and pendigError. But it seems everything normal.

btw. What I expect is a excpetion or pendingError.

My server program works under linux.

Many tanks for help,

Adib.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]