public interface IRemote
| Modifier and Type | Method and Description | 
|---|---|
| void | addConnectionListener(IRemoteConnectionListener listener,
                     boolean immediateNotify)Register an object to listen for connection and disconnection events | 
| boolean | isConnected()Get the current state of the objects connection | 
| boolean | isServer()If the object is acting as a server | 
| void | removeConnectionListener(IRemoteConnectionListener listener)Unregister a listener from connection events | 
void addConnectionListener(IRemoteConnectionListener listener, boolean immediateNotify)
listener - the listener to be registerimmediateNotify - if the listener object should be notified of the current connection statevoid removeConnectionListener(IRemoteConnectionListener listener)
listener - the listener to be unregisteredboolean isConnected()
boolean isServer()