"

2013 FRC Java API

"

edu.wpi.first.wpilibj.networktables2.server
Class ServerConnectionState

java.lang.Object
  extended by edu.wpi.first.wpilibj.networktables2.server.ServerConnectionState
Direct Known Subclasses:
ServerConnectionState.Error

public class ServerConnectionState
extends Object

Represents the state of a connection to the server

Author:
Mitchell

Nested Class Summary
static class ServerConnectionState.Error
          Represents that the client is in an error state
 
Field Summary
static ServerConnectionState CLIENT_DISCONNECTED
          represents that the client has disconnected from the server
static ServerConnectionState CONNECTED_TO_CLIENT
          represents that the client is in a connected non-error state
static ServerConnectionState GOT_CONNECTION_FROM_CLIENT
          represents that the server has received the connection from the client but has not yet received the client hello
 
Constructor Summary
protected ServerConnectionState(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

GOT_CONNECTION_FROM_CLIENT

public static final ServerConnectionState GOT_CONNECTION_FROM_CLIENT
represents that the server has received the connection from the client but has not yet received the client hello


CONNECTED_TO_CLIENT

public static final ServerConnectionState CONNECTED_TO_CLIENT
represents that the client is in a connected non-error state


CLIENT_DISCONNECTED

public static final ServerConnectionState CLIENT_DISCONNECTED
represents that the client has disconnected from the server

Constructor Detail

ServerConnectionState

protected ServerConnectionState(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
"