public class TcpConnectionHandler extends Object implements TcpConnectionListener
| Constructor and Description |
|---|
TcpConnectionHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
onConnect(SocketChannel channel) |
void |
onDisconnect(SocketChannel channel) |
void |
onError(SelectableChannel channel,
Exception exception) |
void |
onListen(ServerSocketChannel channel) |
public void onError(SelectableChannel channel, Exception exception)
onError in interface TcpConnectionListenerpublic void onListen(ServerSocketChannel channel)
onListen in interface TcpConnectionListenerpublic void onConnect(SocketChannel channel)
onConnect in interface TcpConnectionListenerpublic void onDisconnect(SocketChannel channel)
onDisconnect in interface TcpConnectionListenerCopyright © 2021. All rights reserved.