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,v 2.3 2002/05/06 07:24:20 leo Exp $
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

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

java.net.UnknownHostException
java.io.IOException

disconnect

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

java.io.IOException