public interface LowLevelSocketListener
Modifier and Type | Method and Description |
---|---|
boolean |
disableConnections(int id)
Terminates the listening loop for this server socket.
|
int |
enableConnections(long resourceId,
int port,
int qsize)
Create a server socket and let it listen on the given port.
|
int |
enableSSLConnections(long resourceId,
int port,
int qsize,
java.lang.String keyalias,
java.lang.String keyaliaspasswd,
boolean nosessioncache,
int sessiontimeout)
Create a SSL server socket and let it listen on the given port.
|
int enableConnections(long resourceId, int port, int qsize) throws java.io.IOException
resourceId
- The ID of the associated SocketImpl
resource on server side.port
- The port number.qsize
- The backlog size for this socket.LowLevelSocketListenerImpl
instance when
the connection was established.java.io.IOException
- In case of errors while starting the server.int enableSSLConnections(long resourceId, int port, int qsize, java.lang.String keyalias, java.lang.String keyaliaspasswd, boolean nosessioncache, int sessiontimeout) throws java.io.IOException, java.security.GeneralSecurityException
resourceId
- The ID of the associated SocketImpl
resource on server side.port
- The port number.qsize
- The backlog size for this socket.keyalias
- The alias for the digital certificate.keyaliaspasswd
- The password for the key of the digital certificate.nosessioncache
- Flag indicating the SSL client session cache is disabled.sessiontimeout
- The number of seconds before the SSL client request is timeout.LowLevelSocketListenerImpl
instance when
the connection was established.java.io.IOException
- In case of errors while starting the server socket.java.security.GeneralSecurityException
- In case of SSL-related errors while starting the server socket.boolean disableConnections(int id)
id
- The ID of LowLevelSocketListenerImpl
instance on P2J Client side.true
if no errors were encountered during disconnect.