WPILibC++  trunk
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
ServerConnectionAdapter Class Reference

#include <ServerConnectionAdapter.h>

Inheritance diagram for ServerConnectionAdapter:
Inheritance graph
[legend]
Collaboration diagram for ServerConnectionAdapter:
Collaboration graph
[legend]

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 ()
 
ServerConnectionStategetConnectionState ()
 
void ensureAlive ()
 
bool IsAdapterListenerClosed () const
 
ConnectionAdapterAsConnectionAdapter ()
 

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)
 
NetworkTableEntryGetEntry (EntryId id)
 

Detailed Description

Object that adapts messages from a client to the server

Author
Mitchell

Definition at line 33 of file ServerConnectionAdapter.h.

Constructor & Destructor Documentation

ServerConnectionAdapter::ServerConnectionAdapter ( IOStream stream,
ServerNetworkTableEntryStore entryStore,
IncomingEntryReceiver transactionReceiver,
ServerAdapterManager adapterListener,
NetworkTableEntryTypeManager typeManager,
NTThreadManager threadManager 
)

Create a server connection adapter for a given stream

Parameters
stream
transactionPool
entryStore
transactionReceiver
adapterListener
threadManager

Definition at line 20 of file ServerConnectionAdapter.cpp.

Member Function Documentation

void ServerConnectionAdapter::badMessage ( BadMessageException e)
protectedvirtual

called if a bad message exception is thrown

Parameters
e

Implements ConnectionAdapter.

Definition at line 33 of file ServerConnectionAdapter.cpp.

ServerConnectionState * ServerConnectionAdapter::getConnectionState ( )
Returns
the state of the connection

Definition at line 125 of file ServerConnectionAdapter.cpp.

void ServerConnectionAdapter::ioException ( IOException e)
protectedvirtual

called if an io exception is thrown

Parameters
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.

Member Data Documentation

NetworkTableConnection ServerConnectionAdapter::connection

the connection this adapter uses

Definition at line 42 of file ServerConnectionAdapter.h.


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