de.mud.jta.event
Interface SocketListener

All Superinterfaces:
PluginListener
All Known Implementing Classes:
Socket, Timeout

public interface SocketListener
extends PluginListener

The socket listener should be implemented by plugins that want to know when the whole systems connects or disconnects.

Maintainer: Matthias L. Jugel

Version:
$Id: SocketListener.java 499 2005-09-29 08:24:54Z leo $
Author:
Matthias L. Jugel, Marcus Mei???ner

Method Summary
 void connect(java.lang.String host, int port)
          Called if a connection should be established.
 void disconnect()
          Called if the connection should be stopped.
 

Method Detail

connect

void connect(java.lang.String host,
             int port)
             throws java.net.UnknownHostException,
                    java.io.IOException
Called if a connection should be established.

Throws:
java.net.UnknownHostException
java.io.IOException

disconnect

void disconnect()
                throws java.io.IOException
Called if the connection should be stopped.

Throws:
java.io.IOException