TOBI Interface A  0.1
tia::TCPServer Class Reference

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_

Detailed Description

A TCP server base class used to establish TCP connections.

Definition at line 113 of file tcp_server.h.


The documentation for this class was generated from the following files:
 All Data Structures Files Functions Variables Typedefs Enumerations