"

2013 FRC Java API

"

edu.wpi.first.wpilibj.networktables2.client
Class ClientConnectionState

java.lang.Object
  extended by edu.wpi.first.wpilibj.networktables2.client.ClientConnectionState
Direct Known Subclasses:
ClientConnectionState.Error, ClientConnectionState.ProtocolUnsuppotedByServer

public class ClientConnectionState
extends Object

Represents a state that the client is in

Author:
Mitchell

Nested Class Summary
static class ClientConnectionState.Error
          Represents that the client is in an error state
static class ClientConnectionState.ProtocolUnsuppotedByServer
          Represents that a client received a message from the server indicating that the client's protocol revision is not supported by the server
 
Field Summary
static ClientConnectionState CONNECTED_TO_SERVER
          indicates that the client is connected to the server but has not yet begun communication
static ClientConnectionState DISCONNECTED_FROM_SERVER
          indicates that the client is disconnected from the server
static ClientConnectionState IN_SYNC_WITH_SERVER
          represents that the client is now in sync with the server
static ClientConnectionState SENT_HELLO_TO_SERVER
          represents that the client has sent the hello to the server and is waiting for a response
 
Constructor Summary
protected ClientConnectionState(String name)
           
 
Method Summary
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DISCONNECTED_FROM_SERVER

public static final ClientConnectionState DISCONNECTED_FROM_SERVER
indicates that the client is disconnected from the server


CONNECTED_TO_SERVER

public static final ClientConnectionState CONNECTED_TO_SERVER
indicates that the client is connected to the server but has not yet begun communication


SENT_HELLO_TO_SERVER

public static final ClientConnectionState SENT_HELLO_TO_SERVER
represents that the client has sent the hello to the server and is waiting for a response


IN_SYNC_WITH_SERVER

public static final ClientConnectionState IN_SYNC_WITH_SERVER
represents that the client is now in sync with the server

Constructor Detail

ClientConnectionState

protected ClientConnectionState(String name)
Method Detail

toString

public String toString()
Description copied from class: Object
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

Overrides:
toString in class Object
Returns:
a string representation of the object.

"

2013 FRC Java API

"

"
For updated information see the Java FRC site
"