|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ClientConnectionListener
Listener for communications events that occur on an associated
ClientConnection.
| Method Summary | |
|---|---|
void |
connected(ClientConnection connection)
Notifies this listener that a transport connection has been established. |
void |
disconnected(boolean graceful,
byte[] message)
Notifies this listener that the associated server connection is disconnected. |
void |
receivedMessage(byte[] message)
Notifies this listener that protocol data has arrived from the server. |
void |
reconnected(byte[] message)
Notifies this listener that a reconnection effort was successful. |
void |
reconnecting(byte[] message)
Notifies this listener that its associated server connection is in the process of reconnecting with the server. |
ServerSessionListener |
sessionStarted(byte[] message)
Notifies this listener that a new session has successfully logged in. |
| Method Detail |
|---|
void connected(ClientConnection connection)
connection - the newly-established connectionvoid receivedMessage(byte[] message)
message - protocol-specific message dataServerSessionListener sessionStarted(byte[] message)
message - protocol-specific session-start data
ServerSessionvoid reconnecting(byte[] message)
If a connection can be re-established with the server in a
timely manner, this listener's reconnected
method will be invoked. Otherwise, if a connection cannot be
re-established, this listener's disconnected
method will be invoked with false indicating that
the associated session has been disconnected from the server
and the client must log in again.
message - protocol-specific reconnection datavoid reconnected(byte[] message)
message - protocol-specific reconnection data
void disconnected(boolean graceful,
byte[] message)
If graceful is true, the disconnection was due to
the associated client gracefully logging out; otherwise, the
disconnection was due to other circumstances, such as forced
disconnection or network failure.
graceful - true if disconnection was part of graceful
logout, otherwise falsemessage - protocol-specific reconnection data
|
Project Darkstar, Version 0.9.10.12 2013-07-29 21:37:44 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||