bug-commoncpp
[Top][All Lists]
Advanced

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

Detecting connection end


From: René Brüntrup
Subject: Detecting connection end
Date: Wed, 13 Oct 2004 16:44:30 +0200

Hello!

I try to write a simple server that accepts connections from clients and 
receives data until the other end closes the connection. I tried to use 
TCPSession and SimpleTCPStream with loops to receive the data. But all methods 
that should change their return values with an connection end (isConnected(), 
isActive(), ...) always indicate correct connections and I do not know how to 
exit from the receiving loop. In short:
How do I detect closed connections?

Greetings, René

________________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt neu bei WEB.DE FreeMail: http://freemail.web.de/?mc=021193





reply via email to

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