public static interface AsyncTcpSocket.EventHandler
| Modifier and Type | Method and Description |
|---|---|
void |
onClosedWithError(Exception e)
Is called when socket is closed with error.
|
void |
onRead(ByteBuf buf)
Is called when new input data was received by socket.
|
void |
onReadEndOfStream()
Is called when other side closed output, namely other side won't send any more data
|
void |
onRegistered() |
void |
onWrite()
Is called when all buffered data is flushed to network.
|
void onRegistered()
void onRead(ByteBuf buf)
This callback is called only after one or more AsyncTcpSocket.read() invocation,
If this callback has been called, but event handler is still interested in reading data from socket,
AsyncTcpSocket.read() method must be called
buf - input datavoid onReadEndOfStream()
void onWrite()
AsyncTcpSocket.write(ByteBuf) invocation,
unless the socket is closed.void onClosedWithError(Exception e)
Copyright © 2019. All rights reserved.