org.sourceforge.jemmrpc.server
Interface ClientConnectionListener


public interface ClientConnectionListener

An interface to allow a server to listen to client disconnection events.

Author:
Rory Graves

Method Summary
 void clientConnected(ClientId clientId, java.lang.String clientHostname, int clientPort)
          Notification that a new client has just started.
 void clientDisconnected(ClientId clientId)
          Notification that the client with the given clientId has disconnected.
 

Method Detail

clientConnected

void clientConnected(ClientId clientId,
                     java.lang.String clientHostname,
                     int clientPort)
Notification that a new client has just started.

Parameters:
clientId - The id of the new client.
clientHostname - The hostname of the new client.
clientPort - The port of the new client.

clientDisconnected

void clientDisconnected(ClientId clientId)
Notification that the client with the given clientId has disconnected.

Parameters:
clientId - The id of the disconnected client.


Copyright © 2008. All Rights Reserved.