"

2013 FRC Java API

"

edu.wpi.first.wpilibj.networktables2.connection
Interface ConnectionAdapter

All Superinterfaces:
IncomingEntryReceiver
All Known Implementing Classes:
ClientConnectionAdapter, ServerConnectionAdapter

public interface ConnectionAdapter
extends IncomingEntryReceiver

Handles logic specific to the type of a node

Author:
mwills

Field Summary
 
Fields inherited from interface edu.wpi.first.wpilibj.networktables2.IncomingEntryReceiver
NULL
 
Method Summary
 void badMessage(BadMessageException e)
          called if a bad message exception is thrown
 void clientHello(char protocolRevision)
          Called when the connection receives a client hello message
 NetworkTableEntry getEntry(char id)
          get an entry (used by a connection when filling an update entry
 void ioException(IOException e)
          called if an io exception is thrown
 void keepAlive()
          Called when the connection receives a keep alive message
 void protocolVersionUnsupported(char protocolRevision)
          Called when the connection receives a protocol unsupported message
 void serverHelloComplete()
           
 
Methods inherited from interface edu.wpi.first.wpilibj.networktables2.IncomingEntryReceiver
offerIncomingAssignment, offerIncomingUpdate
 

Method Detail

keepAlive

void keepAlive()
               throws IOException
Called when the connection receives a keep alive message

Throws:
IOException

clientHello

void clientHello(char protocolRevision)
                 throws IOException
Called when the connection receives a client hello message

Parameters:
protocolRevision -
Throws:
IOException

protocolVersionUnsupported

void protocolVersionUnsupported(char protocolRevision)
                                throws IOException
Called when the connection receives a protocol unsupported message

Parameters:
protocolRevision - the protocol version the server reported it supports
Throws:
IOException

serverHelloComplete

void serverHelloComplete()
                         throws IOException
Throws:
IOException

getEntry

NetworkTableEntry getEntry(char id)
get an entry (used by a connection when filling an update entry

Parameters:
id -
Returns:
the entry or null if the entry does not exist

badMessage

void badMessage(BadMessageException e)
called if a bad message exception is thrown

Parameters:
e -

ioException

void ioException(IOException e)
called if an io exception is thrown

Parameters:
e -

"

2013 FRC Java API

"

"
For updated information see the Java FRC site
"