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 TcpConnectionListener
public void onListen(ServerSocketChannel channel)
onListen
in interface TcpConnectionListener
public void onConnect(SocketChannel channel)
onConnect
in interface TcpConnectionListener
public void onDisconnect(SocketChannel channel)
onDisconnect
in interface TcpConnectionListener
Copyright © 2017. All rights reserved.