|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SocketListener
Listener interface for a socket connection.
SocketConnection.addListener(E)
is used to
register as a listener for server events and this interface specified what
events can be triggered.
Method Summary | |
---|---|
void |
connectionUpdate(ConnectionState state)
Invoked when the connection state of the underlying socket has changed. |
void |
invalidMessage(String message)
Invoked when an invalid or unsupported message is received from the server. |
void |
socketError(IOException exception)
Invoked when a socket error is encountered. |
Method Detail |
---|
void invalidMessage(String message)
SocketConnection.messageHandler(String)
) fails to understand
the message, or if it contains invalid data.
message
- the message that triggered the eventvoid socketError(IOException exception)
exception
- the error that triggered the eventvoid connectionUpdate(ConnectionState state)
state
- new connection state
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |