public static interface TcpServer.ConnectionHandler
| Modifier and Type | Method and Description |
|---|---|
void |
handleConnection(java.io.InputStream in,
java.io.OutputStream out,
java.net.InetSocketAddress localSocketAddress,
java.net.InetSocketAddress remoteSocketAddress,
Stoppable stoppable)
The input stream is readable; consume and process one request from it.
|
void handleConnection(java.io.InputStream in,
java.io.OutputStream out,
java.net.InetSocketAddress localSocketAddress,
java.net.InetSocketAddress remoteSocketAddress,
Stoppable stoppable)
throws java.lang.Exception
stoppable - Stopping this will break the connectionjava.lang.Exception