se.entra.phantom.server
Interface ClientConnectionInterface

All Known Implementing Classes:
SocketClientConnectionListener

public interface ClientConnectionInterface

The manager for all threaded client sessions that clients can connect to.


Method Summary
 void closeClientListener()
          Closes and disposes of the connection listener.
 void createClientListener(IniFile ini, String name)
          This method creates a listener for incomming client connections.
 String getID()
          Gets the name (ID) of the port.
 int getLocalPort()
          Gets the local port number.
 int getMapToPort()
          Gets the port number being mapped to.
 boolean isClosed()
          Checks if a connection is closed.
 boolean isLoadBalanced()
          Checks if this listener is load balanced or not.
 boolean isStarted()
          Checks if a connection is started.
 boolean isUsingSSL()
          Returns if SSL is used or not.
 boolean startClientListener(ClientConnectionListener listener)
          This method starts listening for connections.
 boolean stopClientListener()
          This method stops listening for connections.
 

Method Detail

createClientListener

void createClientListener(IniFile ini,
                          String name)
                          throws IOException
This method creates a listener for incomming client connections.

Throws:
IOException

startClientListener

boolean startClientListener(ClientConnectionListener listener)
                            throws IOException
This method starts listening for connections.

Returns:
true if successful, false if already started.
Throws:
IOException

stopClientListener

boolean stopClientListener()
                           throws IOException
This method stops listening for connections.

Throws:
IOException

closeClientListener

void closeClientListener()
Closes and disposes of the connection listener.


isStarted

boolean isStarted()
Checks if a connection is started.


isLoadBalanced

boolean isLoadBalanced()
Checks if this listener is load balanced or not.


isUsingSSL

boolean isUsingSSL()
Returns if SSL is used or not.


getID

String getID()
Gets the name (ID) of the port.


getLocalPort

int getLocalPort()
Gets the local port number.


getMapToPort

int getMapToPort()
Gets the port number being mapped to.


isClosed

boolean isClosed()
Checks if a connection is closed.



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