|
TOBI Interface A
0.1
|
A TCP server base class used to establish TCP connections. More...
#include <tcp_server.h>
Inheritance diagram for tia::TCPServer:Public Member Functions | |
| TCPServer (boost::asio::io_service &io_service) | |
| Constructor. | |
| 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 Member Functions | |
| virtual void | startAccept () |
| Accept a new connection. | |
| virtual void | handleAccept (const TCPConnection::pointer &new_connection, const boost::system::error_code &error)=0 |
| Handles a new client connection (abstract method). | |
Protected Attributes | |
| boost::asio::io_service & | io_service_ |
| boost::asio::ip::tcp::acceptor | acceptor_ |
A TCP server base class used to establish TCP connections.
Definition at line 113 of file tcp_server.h.