systemChanged
void systemChanged(int channel,
int property,
int value)
Notification of changes in the state of the given channel.
Basic open and close operations will ignore the value parameter and carry the state information in the property field.
Channels that are configured to use a mode with some sense of connection state (RTP, Bluetooth, ADB and Usb Host) will send
additional information in events whose property field will be NMJConfig.CH_STATE and %value.will signal the current state.
Possible values include the following constants (defined in NMJConfig):
RTPA_CH_WAITING - a local session is ready to accept connection requests. Usually sent after the channel has been opened.
RTPA_CH_DISCOVERED - a new remote peer has been discovered and was stored under the incoming channel id.
RTPA_CH_PRESENT - a remote peer that was already known is present and ready to connect.
RTPA_CH_CONNECTED - a channel has been successfully connected.
RTPA_CH_CLIENT_CONNECT - a remote client connected to a local session. If this was the first client RTPA_CH_CONNECTED will have been sent directly before
RTPA_CH_DISCONNECTED - a channel was disconnected
RTPA_CH_CLIENT_DISCONNECT - a remote client disconnected from a local session. If the disconnected client was the last one RTPA_CH_DISCONNECTED will be sent directly after this event.
RTPA_CH_GONE - a remote peer has left the network
RTPA_CH_LOST - connection broken
RTPA_CONNECTION_REFUSED - the remote side did not allow a connection (also see NMJConfig.setFlags(..)).
RTPA_NO_RESPONSE - a remote channel whom a connection request was sent to, did not respond.
The numeric values of these constants may change, please use the defined constant fields!
When %channel is -1 this signals changes in global scope. Possible properties are:
CONNECTIVITY_CHANGED - value is a combination of CONNECTIVITY_ constants (equivalent to the return of NMJConfig.getConnectivity(..)). This event will only be sent if the global NET_MON flag is set.