se.entra.phantom.server
Interface ClientConnectionListener

All Known Implementing Classes:
ClientSessionManager

public interface ClientConnectionListener

This interface is implemented by the ClientSessionManager in order to processing new incoming connections. This interface allows the Socket connection type (and others) to seamlessly be changed from the NetPhantom perspective.


Method Summary
 boolean isClientConnectionAllowed(String id, ServerSocketInterface ssi, Socket socket)
          Checks if a client is allowed to connect or not.
 void onClientConnect(String id, ClientCommunicationInterface cci)
          Notifies the Client Session Manager that a new client connection has been made.
 void onRemoteApplicationConnect(String id, ClientCommunicationInterface cci)
          Notifies the Client Session Manager that a new remote application connection has been made.
 void onUnknownConnect(String id, ServerSocketInterface ssi, Socket s, int firstChar)
          Notifies the Client Session Manager that an unknown connection type has been made.
 

Method Detail

isClientConnectionAllowed

boolean isClientConnectionAllowed(String id,
                                  ServerSocketInterface ssi,
                                  Socket socket)
Checks if a client is allowed to connect or not.


onClientConnect

void onClientConnect(String id,
                     ClientCommunicationInterface cci)
Notifies the Client Session Manager that a new client connection has been made.


onRemoteApplicationConnect

void onRemoteApplicationConnect(String id,
                                ClientCommunicationInterface cci)
                                throws IOException
Notifies the Client Session Manager that a new remote application connection has been made.

Throws:
IOException - when a connection cannot be established.

onUnknownConnect

void onUnknownConnect(String id,
                      ServerSocketInterface ssi,
                      Socket s,
                      int firstChar)
                      throws IOException
Notifies the Client Session Manager that an unknown connection type has been made.

Throws:
IOException - when a connection cannot be established.


Phantom® and NetPhantom® are registered trademarks of Codectica Systems SARL.
© Copyright Codectica Systems SARL, 2008. All rights reserved.