Now you can download a copy of these docs so you can use them offline! Download now
ClientConnectionAdapter Class Reference

#include <ClientConnectionAdapter.h>

Inheritance diagram for ClientConnectionAdapter:
Collaboration diagram for ClientConnectionAdapter:

Public Member Functions

ClientConnectionStategetConnectionState ()
 
bool isConnected ()
 
 ClientConnectionAdapter (ClientNetworkTableEntryStore &entryStore, NTThreadManager &threadManager, IOStreamFactory &streamFactory, ClientConnectionListenerManager &connectionListenerManager, NetworkTableEntryTypeManager &typeManager)
 
void reconnect ()
 
void close ()
 
void close (ClientConnectionState *newState)
 
void badMessage (BadMessageException &e)
 
void ioException (IOException &e)
 
NetworkTableEntryGetEntry (EntryId id)
 
bool keepAlive ()
 
void clientHello (ProtocolVersion protocolRevision)
 
void protocolVersionUnsupported (ProtocolVersion protocolRevision)
 
void serverHelloComplete ()
 
void offerIncomingAssignment (NetworkTableEntry *entry)
 
void offerIncomingUpdate (NetworkTableEntry *entry, SequenceNumber sequenceNumber, EntryValue value)
 
void offerOutgoingAssignment (NetworkTableEntry *entry)
 
void offerOutgoingUpdate (NetworkTableEntry *entry)
 
void flush ()
 
void ensureAlive ()
 

Detailed Description

Object that adapts messages from a server

Author
Mitchell

Definition at line 31 of file ClientConnectionAdapter.h.

Constructor & Destructor Documentation

ClientConnectionAdapter::ClientConnectionAdapter ( ClientNetworkTableEntryStore _entryStore,
NTThreadManager _threadManager,
IOStreamFactory _streamFactory,
ClientConnectionListenerManager _connectionListenerManager,
NetworkTableEntryTypeManager _typeManager 
)

Create a new ClientConnectionAdapter

Parameters
entryStore
threadManager
streamFactory
transactionPool
connectionListenerManager

Definition at line 50 of file ClientConnectionAdapter.cpp.

Member Function Documentation

void ClientConnectionAdapter::badMessage ( BadMessageException e)
virtual

called if a bad message exception is thrown

Parameters
e

Implements ConnectionAdapter.

Definition at line 153 of file ClientConnectionAdapter.cpp.

void ClientConnectionAdapter::close ( )

Close the client connection

Definition at line 130 of file ClientConnectionAdapter.cpp.

void ClientConnectionAdapter::close ( ClientConnectionState newState)

Close the connection to the server and enter the given state

Parameters
newState

Definition at line 137 of file ClientConnectionAdapter.cpp.

ClientConnectionState * ClientConnectionAdapter::getConnectionState ( )
Returns
the state of the connection

Definition at line 32 of file ClientConnectionAdapter.cpp.

void ClientConnectionAdapter::ioException ( IOException e)
virtual

called if an io exception is thrown

Parameters
e

Implements ConnectionAdapter.

Definition at line 158 of file ClientConnectionAdapter.cpp.

bool ClientConnectionAdapter::isConnected ( )
Returns
if the client is connected to the server

Definition at line 38 of file ClientConnectionAdapter.cpp.

void ClientConnectionAdapter::reconnect ( )

Reconnect the client to the server (even if the client is not currently connected)

Definition at line 99 of file ClientConnectionAdapter.cpp.


The documentation for this class was generated from the following files:

Generated on Sat Apr 26 2014 12:26:45 for WPILibC++ by doxygen 1.8.6