#include <ClientConnectionAdapter.h>
Public Member Functions | |
ClientConnectionState * | getConnectionState () |
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) |
NetworkTableEntry * | GetEntry (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 () |
Object that adapts messages from a server
Definition at line 31 of file ClientConnectionAdapter.h.
ClientConnectionAdapter::ClientConnectionAdapter | ( | ClientNetworkTableEntryStore & | _entryStore, |
NTThreadManager & | _threadManager, | ||
IOStreamFactory & | _streamFactory, | ||
ClientConnectionListenerManager & | _connectionListenerManager, | ||
NetworkTableEntryTypeManager & | _typeManager | ||
) |
Create a new ClientConnectionAdapter
entryStore | |
threadManager | |
streamFactory | |
transactionPool | |
connectionListenerManager |
Definition at line 50 of file ClientConnectionAdapter.cpp.
|
virtual |
called if a bad message exception is thrown
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
newState |
Definition at line 137 of file ClientConnectionAdapter.cpp.
ClientConnectionState * ClientConnectionAdapter::getConnectionState | ( | ) |
Definition at line 32 of file ClientConnectionAdapter.cpp.
|
virtual |
called if an io exception is thrown
e |
Implements ConnectionAdapter.
Definition at line 158 of file ClientConnectionAdapter.cpp.
bool ClientConnectionAdapter::isConnected | ( | ) |
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.