TOBI Interface A  0.1
tia::TCPDataConnection Class Reference
+ Inheritance diagram for tia::TCPDataConnection:
+ Collaboration diagram for tia::TCPDataConnection:

Public Types

typedef boost::shared_ptr
< TCPDataConnection
pointer
 TCPDataConnection Handle.

Public Member Functions

virtual ~TCPDataConnection ()
 Destructor.
bool connected () const
 Tells if the client is still connected.
boost::asio::ip::tcp::endpoint localEndpoint () const
 The local endpoint.
void sendDataPacket (DataPacket &packet)
 Sends a DataPacket to the clients.
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.

Static Public Member Functions

static pointer create (boost::asio::io_service &io_service)
 Creates a new TCPDataConnection object.

Protected Member Functions

virtual void startAccept ()
 Accept a new connection.
virtual void handleAccept (const TCPConnection::pointer &new_connection, const boost::system::error_code &error)
 Handles a new client connection.

Protected Attributes

boost::asio::io_service & io_service_
boost::asio::ip::tcp::acceptor acceptor_

Detailed Description

Definition at line 68 of file tcp_data_server.h.


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