|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SocketLinkDuplexListener
Resin network handler for a bidirectional tcp stream.
The read stream should only be read by the onRead thread.
The write stream must be synchronized if it's every written by a thread
other than the serviceRead
| Method Summary | |
|---|---|
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 |
| Method Detail |
|---|
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||