de.mud.jta.event

Interface SocketListener

All Superinterfaces:
PluginListener
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(String host, int port)
Called if a connection should be established.
void
disconnect()
Called if the connection should be stopped.

Method Details

connect

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

disconnect

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