NetworkIO
Interface ConnectionListener


public interface ConnectionListener

ConnectionListener is a way to tell when a new connection has been made or an old one lost. To use a ConnectionListener, simply call: ServerBase.addConnectionListener(ConnectionListener);


Method Summary
 void gotConnection(java.net.Socket socket)
          Recieved a connection.
 void lostConnection(java.net.Socket socket)
          Lost an old connection.
 

Method Detail

gotConnection

void gotConnection(java.net.Socket socket)
Recieved a connection.

Parameters:
socket - The socket of the new connection.

lostConnection

void lostConnection(java.net.Socket socket)
Lost an old connection.

Parameters:
socket - The previous socket connection.