public interface TcpNodeListener
extends java.util.EventListener
Modifier and Type | Method and Description |
---|---|
void |
messageReceived(java.lang.String sender,
java.lang.String text)
Fired when the node receives a message from another node (via the relay).
|
void |
nodeStateChanged(TcpNodeState state)
Fired when the connection state changes.
|
void |
statusReceived(java.lang.String text)
Fired when the relay sends status messages.
|
void messageReceived(java.lang.String sender, java.lang.String text)
sender
- the nickname of the sending nodetext
- the transmitted datavoid statusReceived(java.lang.String text)
text
- the transmitted datavoid nodeStateChanged(TcpNodeState state)
state
- one of the values defined in the TcpNodeState enumeration.