public static interface TcpConnection.Listener
| Modifier and Type | Method and Description |
|---|---|
void |
onReceived(ByteBuffer buffer)
This method is called when data is received.
|
void |
onReceiverStarted(Thread thread)
This method is called when the receiver thread is started.
|
void |
onReceiverStopping(TcpConnectionStopReason reason,
String message)
This method is called when the receiving data is stopping.
|
void |
onReceivingTimeout(long timeout)
This method is called when a receiving timeout occurs.
|
void |
onSenderStarted(Thread thread)
This method is called when the sender thread is started.
|
void |
onSendingTimeout(long timeout)
This method is called when a sending timeout occurs.
|
void onSenderStarted(Thread thread)
ConnectionMode.DEDICATED_THREADS mode.thread - the thread that is startedvoid onReceiverStarted(Thread thread)
ConnectionMode.DEDICATED_THREADS mode.thread - the thread that is startedvoid onReceiverStopping(TcpConnectionStopReason reason, String message)
reason - the reason for stopping the receivermessage - the message describing the reasonvoid onSendingTimeout(long timeout)
timeout - the timeout that is reachedvoid onReceivingTimeout(long timeout)
timeout - the timeout that is reachedvoid onReceived(ByteBuffer buffer)
buffer - the buffer that holds the received dataCopyright © 2005–2025 Onix Solutions. All rights reserved.