public class TcpNodeAdapter extends java.lang.Object implements TcpNodeListener
Constructor and Description |
---|
TcpNodeAdapter() |
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.
|
public void messageReceived(java.lang.String sender, java.lang.String text)
messageReceived
in interface TcpNodeListener
sender
- the nickname of the sending nodetext
- the transmitted datapublic void statusReceived(java.lang.String text)
statusReceived
in interface TcpNodeListener
text
- the transmitted datapublic void nodeStateChanged(TcpNodeState state)
nodeStateChanged
in interface TcpNodeListener
state
- one of the values defined in the TcpNodeState enumeration.