public static interface NioTcpServer.ConnectionHandler
| Modifier and Type | Method and Description |
|---|---|
void |
handleConnection(ReadableByteChannel in,
WritableByteChannel out,
InetSocketAddress localSocketAddress,
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(ReadableByteChannel in, WritableByteChannel out, InetSocketAddress localSocketAddress, InetSocketAddress remoteSocketAddress, Multiplexer multiplexer, Stoppable stoppable) throws Exception
multiplexer to wait until in, out or some
other SelectableChannel becomes readable or writable.stoppable - Stopping this will break the connectionExceptionCopyright © 2016 Arno Unkrig. All rights reserved.