CppCMS
Public Member Functions
booster::aio::acceptor Class Reference

this class represents a socket that accepts incoming connections More...

#include <booster/booster/aio/acceptor.h>

Inheritance diagram for booster::aio::acceptor:
booster::aio::basic_socket booster::aio::basic_io_device booster::noncopyable

List of all members.

Public Member Functions

 acceptor ()
 acceptor (io_service &srv)
void open (family_type d)
void open (family_type d, system::error_code &e)
void accept (stream_socket &s)
void accept (stream_socket &s, system::error_code &e)
void bind (endpoint const &ep)
void bind (endpoint const &ep, system::error_code &e)
void listen (int backlog)
void listen (int backlog, system::error_code &e)
void async_accept (stream_socket &s, event_handler const &h)

Detailed Description

this class represents a socket that accepts incoming connections


Constructor & Destructor Documentation

Create a new acceptor object

Create a new acceptor object with assigned io_service srv)


Member Function Documentation

Accepts a new incoming connection to the socket s

Throws system::system_error if error occurs.

Accepts a new incoming connection to the socket s

If a error occurs it is assigned to e.

Accept the connection asynchronously. The reference s must be valid until h is called.

If io_service is not assigned throws system::system_error, all other errors reported via the callback h.

void booster::aio::acceptor::bind ( endpoint const &  ep)

Bind the opended socket the endpoint ep

Throws system::system_error if error occurs.

Bind the opended socket the endpoint ep

If a error occurs it is assigned to e.

void booster::aio::acceptor::listen ( int  backlog)

Starts listening on the socket with backlog parameter backlog

Throws system::system_error if error occurs.

void booster::aio::acceptor::listen ( int  backlog,
system::error_code e 
)

Starts listening on the socket with backlog parameter backlog

If a error occurs it is assigned to e.

Opens a new stream socket of a family_type d

Throws system::system_error if error occurs.

Opens a new stream socket of a family_type d

If a error occurs it is assigned to e.


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