You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Pauwels Stefan <St...@siemens.com> on 2004/11/09 14:44:49 UTC

TelnetClient check problem


Hello,

I use the TelnetClient to create a telnet session to some host.
TelnetClient connection = new TelnetClient (host);

But I have a problem:
When the connection goes down for some reason: e.g. cable broke, ...
Nothing is reported, even if you check it with:

connection.isConnected(); //->reports always true

How can I properly check if the connection is still active,
Before I send some commands on it ?


Thanks for your help.
Stefan


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org