"

2013 FRC Java API

"

edu.wpi.first.wpilibj.tables
Interface IRemote

All Known Implementing Classes:
NetworkTable, NetworkTableClient, NetworkTableNode, NetworkTableServer

public interface IRemote

Represents an object that has a remote connection

Author:
Mitchell

Method Summary
 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
 

Method Detail

addConnectionListener

void addConnectionListener(IRemoteConnectionListener listener,
                           boolean immediateNotify)
Register an object to listen for connection and disconnection events

Parameters:
listener - the listener to be register
immediateNotify - if the listener object should be notified of the current connection state

removeConnectionListener

void removeConnectionListener(IRemoteConnectionListener listener)
Unregister a listener from connection events

Parameters:
listener - the listener to be unregistered

isConnected

boolean isConnected()
Get the current state of the objects connection

Returns:
the current connection state

isServer

boolean isServer()
If the object is acting as a server

Returns:
if the object is a server

"

2013 FRC Java API

"

"
For updated information see the Java FRC site
"