public class SocketClientConnectionListener extends Object implements ClientConnectionInterface, Runnable
| Constructor and Description |
|---|
SocketClientConnectionListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeClientListener()
Closes and disposes of the connection listener.
|
void |
createClientListener(IniFile ini,
String name)
Creates the server socket that will listens to incoming
client connections.
|
InetAddress |
getBindAddress()
Gets the bind address for the port.
|
String |
getID()
Gets the name (ID) of the port.
|
int |
getLocalPort()
Gets the physical 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.
|
void |
run()
The thread runs here until the server is shut-down or until
a user-logon is prohibited.
|
boolean |
startClientListener(ClientConnectionListener listener)
This method starts listening for connections.
|
boolean |
stopClientListener()
This method stops listening for connections.
|
public void createClientListener(IniFile ini, String name) throws IOException
The following values are read from the [Port] section of the ini file:
createClientListener in interface ClientConnectionInterfaceIOException - if an I/O error occurs.public InetAddress getBindAddress()
public boolean startClientListener(ClientConnectionListener listener) throws IOException
startClientListener in interface ClientConnectionInterfaceIOException - if an I/O error occurs.public boolean stopClientListener()
stopClientListener in interface ClientConnectionInterfacepublic void closeClientListener()
closeClientListener in interface ClientConnectionInterfacepublic boolean isStarted()
isStarted in interface ClientConnectionInterfacepublic boolean isLoadBalanced()
isLoadBalanced in interface ClientConnectionInterfacepublic boolean isUsingSSL()
isUsingSSL in interface ClientConnectionInterfacepublic String getID()
getID in interface ClientConnectionInterfacepublic int getLocalPort()
getLocalPort in interface ClientConnectionInterfacepublic int getMapToPort()
getMapToPort in interface ClientConnectionInterfacepublic boolean isClosed()
isClosed in interface ClientConnectionInterfacePhantom® and NetPhantom® are registered trademarks of Nexum Technologies SARL.
© Copyright Nexum Technologies SARL, 2011. All rights reserved.