|
TOBI Interface A
0.1
|
Server to handle control requests from clients. More...
#include <control_connection_server.h>
Inheritance diagram for tia::ControlConnectionServer:
Collaboration diagram for tia::ControlConnectionServer:Public Member Functions | |
| ControlConnectionServer (std::map< std::string, std::string > subject_info, boost::asio::io_service &io_service, TiAServer &server) | |
| Constructor. | |
| virtual | ~ControlConnectionServer () |
| Destructor. | |
| TCPDataServer * | tcpDataServer () const |
| Return a reference to the TCPDataServer. | |
| UDPDataServer * | udpDataServer () const |
| Return a reference to the UDPDataServer. | |
| void | getConfig (ConfigMsg &config) |
| Get the server meta data. | |
| void | bind (boost::uint16_t port) |
| Binds the server to the given port. | |
| void | bind (const std::string &address, boost::uint16_t port) |
| Binds the server to the given address and port. | |
| void | listen () |
| Starts listening. | |
Protected Types | |
|
typedef std::map < ControlConnection::ConnectionID, ControlConnection::pointer > | CtrlConnHandlers |
Protected Member Functions | |
| void | createSubjectInfo (std::map< std::string, std::string > subject_info) |
| Creates the SubjectInfo object. | |
| void | createSignalInfo () |
| Creates the SignalInfo object. | |
| virtual void | handleAccept (const TCPConnection::pointer &new_connection, const boost::system::error_code &error) |
| Handles a new client connection. | |
| void | clientHasDisconnected (const ControlConnection::ConnectionID &id) |
| virtual void | startAccept () |
| Accept a new connection. | |
Protected Attributes | |
| boost::asio::io_service & | io_service_ |
| boost::asio::ip::tcp::acceptor | acceptor_ |
Friends | |
| class | ControlConnection |
Server to handle control requests from clients.
Definition at line 77 of file control_connection_server.h.