AirInv Logo  1.00.1
C++ Simulated Airline Inventory Management System library
AIRINV::Connection Class Reference

#include <airinv/server/Connection.hpp>

+ Inheritance diagram for AIRINV::Connection:

Public Member Functions

 Connection (boost::asio::io_service &, RequestHandler &)
 
boost::asio::ip::tcp::socket & socket ()
 
void start ()
 

Detailed Description

Represents a single connection from a client.

Definition at line 25 of file Connection.hpp.

Constructor & Destructor Documentation

AIRINV::Connection::Connection ( boost::asio::io_service &  ioService,
RequestHandler ioHandler 
)

Constructor.
Construct a connection with the given io_service.

Definition at line 16 of file Connection.cpp.

Member Function Documentation

boost::asio::ip::tcp::socket & AIRINV::Connection::socket ( )

Get the socket associated with the connection.

Definition at line 22 of file Connection.cpp.

void AIRINV::Connection::start ( )

Start the first asynchronous operation for the connection.

Definition at line 27 of file Connection.cpp.


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