public interface TcpAgentListener
extends java.util.EventListener
| Modifier and Type | Method and Description |
|---|---|
void |
dataReceived(java.lang.String source,
int[] data)
Fired when the agent receives data from the bridge
|
void |
notifyAgentConnection(java.lang.String agentName,
boolean connected)
Fired when a new agent in the same session connects or an already
connected agent disconnects.
|
void |
notifyBridgeConnection(boolean connected)
Fired when the bridge connects or disconnects.
|
void |
notifyRelayConnection(boolean connected)
Fired when the connection to the relay is established or broken.
|
void dataReceived(java.lang.String source,
int[] data)
source - the node name that the bridge indicates as data sourcedata - the data as integer array of any lenghtvoid notifyRelayConnection(boolean connected)
connected - true, if the connection is established; otherwise falsevoid notifyAgentConnection(java.lang.String agentName,
boolean connected)
agentName - the nickname of the agent that connects or disconnectsconnected - true, if the connection is established; otherwise falsevoid notifyBridgeConnection(boolean connected)
connected - true, if the connection is established; otherwise false