public static interface NioTcpServer.ConnectionHandler
| Modifier and Type | Method and Description |
|---|---|
void |
handleConnection(java.nio.channels.ReadableByteChannel in,
java.nio.channels.WritableByteChannel out,
java.net.InetSocketAddress localSocketAddress,
java.net.InetSocketAddress remoteSocketAddress,
Multiplexer multiplexer,
Stoppable stoppable)
A connection was accepted; use the
multiplexer to wait until in, out or some
other SelectableChannel becomes readable or writable. |
void handleConnection(java.nio.channels.ReadableByteChannel in,
java.nio.channels.WritableByteChannel out,
java.net.InetSocketAddress localSocketAddress,
java.net.InetSocketAddress remoteSocketAddress,
Multiplexer multiplexer,
Stoppable stoppable)
throws java.lang.Exception
multiplexer to wait until in, out or some
other SelectableChannel becomes readable or writable.stoppable - Stopping this will break the connectionjava.lang.Exception