public abstract class ServerListenerHandler extends Object
| Constructor and Description |
|---|
ServerListenerHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
onConnectionShutdown(ServerConnection serverConnection,
int errorCode)
Invoked upon connection shutdown.
|
protected abstract ServerConnectionHandler |
onNewConnection(ServerConnection serverConnection,
int errorCode)
Invoked upon receiving a new connection, or if an error happened upon connection
creation.
|
protected abstract ServerConnectionHandler onNewConnection(ServerConnection serverConnection, int errorCode)
serverConnection - The new server connection to use for communications. Is non-null
when errorCode is 0.errorCode - represents any error that occurred during connection establishmentprotected abstract void onConnectionShutdown(ServerConnection serverConnection, int errorCode)
serverConnection - connection the shutdown occurred on.errorCode - shutdown reason. 0 means clean shutdown.Copyright © 2021. All rights reserved.