public interface ServerListener
| Modifier and Type | Method and Description |
|---|---|
void |
connectionAccepted(SocketChannel channel)
Invoked when the server accepts a connection.
|
void |
dataRead(Responder responder)
Invoked when the server receives a buffer of data.
|
void |
dataSent(int numBytes)
Invoked after the server sends data.
|
void connectionAccepted(SocketChannel channel)
void dataRead(Responder responder) throws IOException
responder - an object which can be used to issue a response and/or act as a key for context.IOExceptionvoid dataSent(int numBytes)
numBytes - the number of bytes sent.Copyright © 2014. All rights reserved.