JTA - Telnet/SSH for the JAVA(tm) platform: Timeout Plugin

© 1996-2000 Matthias L. Jugel and Marcus Meißner

Version 2.0 / Java 2 and 1.1.x
Available under GNU General Public License

Homepage Applet Test Download Documentation Users / Opinions

Timeout Plugin

The timeout plugin can be used to make sure a connection is only open as long as there is data beeing sent or received. You can define the time the connection may be open until it will be closed by the software. As some hosts may have difficulties with connections that simply close the connection this plugin allows you to define a graceful logout command.

The timeout will be reset every time something happens and after a disconnection and reconnect it will start again automatically.

To use the plugin put it in your plugin list, preferrably between the Terminal and the Telnet or SSH plugin.
 

Property Documentation
Timeout.seconds The seconds the connection may be open without data transmitted between client and server.
Timeout.command The graceful logout command to be used to close the connection from server side. You may want to use "logout" or "exit" for most UNIX systems. Make sure you put a newline (\n) at the end.

Example: logout\n

Timeout.warning A warning message to be displayed on screen to tell the user that his connection will be closed. Not implemented yet.
Additional Programmer Documentation is available:
 
de.mud.jta.plugin.Timeout
This is the programmer documentation for the timeout plugin. 
de.mud.jta.event
This plugins uses some of the events and listeners described here. Especially
the SocketListener and SocketRequest is important.
Copyright 1996-2000 Matthias L. Jugel, Marcus Meißner
$Id: Timeout.html 501 2005-10-07 09:32:42Z leo $