#include <ServerConnectionAdapter.h>


Public Member Functions | |
| ServerConnectionAdapter (IOStream *stream, ServerNetworkTableEntryStore &entryStore, IncomingEntryReceiver &transactionReceiver, ServerAdapterManager &adapterListener, NetworkTableEntryTypeManager &typeManager, NTThreadManager &threadManager) | |
| void | shutdown (bool closeStream) |
| void | offerOutgoingAssignment (NetworkTableEntry *entry) |
| void | offerOutgoingUpdate (NetworkTableEntry *entry) |
| void | flush () |
| ServerConnectionState * | getConnectionState () |
| void | ensureAlive () |
| bool | IsAdapterListenerClosed () const |
| ConnectionAdapter & | AsConnectionAdapter () |
Public Attributes | |
| NetworkTableConnection | connection |
Protected Member Functions | |
| bool | keepAlive () |
| void | badMessage (BadMessageException &e) |
| void | ioException (IOException &e) |
| void | clientHello (ProtocolVersion protocolRevision) |
| void | protocolVersionUnsupported (ProtocolVersion protocolRevision) |
| void | serverHelloComplete () |
| void | offerIncomingAssignment (NetworkTableEntry *entry) |
| void | offerIncomingUpdate (NetworkTableEntry *entry, SequenceNumber sequenceNumber, EntryValue value) |
| NetworkTableEntry * | GetEntry (EntryId id) |
Object that adapts messages from a client to the server
Definition at line 33 of file ServerConnectionAdapter.h.
| ServerConnectionAdapter::ServerConnectionAdapter | ( | IOStream * | stream, |
| ServerNetworkTableEntryStore & | entryStore, | ||
| IncomingEntryReceiver & | transactionReceiver, | ||
| ServerAdapterManager & | adapterListener, | ||
| NetworkTableEntryTypeManager & | typeManager, | ||
| NTThreadManager & | threadManager | ||
| ) |
Create a server connection adapter for a given stream
| stream | |
| transactionPool | |
| entryStore | |
| transactionReceiver | |
| adapterListener | |
| threadManager |
Definition at line 20 of file ServerConnectionAdapter.cpp.
|
protectedvirtual |
called if a bad message exception is thrown
| e |
Implements ConnectionAdapter.
Definition at line 33 of file ServerConnectionAdapter.cpp.
| ServerConnectionState * ServerConnectionAdapter::getConnectionState | ( | ) |
Definition at line 125 of file ServerConnectionAdapter.cpp.
|
protectedvirtual |
called if an io exception is thrown
| e |
Implements ConnectionAdapter.
Definition at line 41 of file ServerConnectionAdapter.cpp.
| void ServerConnectionAdapter::shutdown | ( | bool | closeStream | ) |
stop the read thread and close the stream
Definition at line 53 of file ServerConnectionAdapter.cpp.
| NetworkTableConnection ServerConnectionAdapter::connection |
the connection this adapter uses
Definition at line 42 of file ServerConnectionAdapter.h.
1.8.6