public interface SocketLinkDuplexListener
onRead
thread.
The write stream must be synchronized if it's every written by a thread
other than the serviceRead
Modifier and Type | Method and Description |
---|---|
void |
onDisconnect(SocketLinkDuplexController context)
Called when the connection closes
|
void |
onRead(SocketLinkDuplexController context)
Called when read data is available
|
void |
onStart(SocketLinkDuplexController context)
Called when the connection is established
|
void |
onTimeout(SocketLinkDuplexController context)
Called when the connection times out
|
void onStart(SocketLinkDuplexController context) throws java.io.IOException
java.io.IOException
void onRead(SocketLinkDuplexController context) throws java.io.IOException
java.io.IOException
void onDisconnect(SocketLinkDuplexController context) throws java.io.IOException
java.io.IOException
void onTimeout(SocketLinkDuplexController context) throws java.io.IOException
java.io.IOException