NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
websocketpp::transport::asio Namespace Reference

Transport policy that uses asio. More...

Namespaces

 basic_socket
 A socket policy for the asio transport that implements a plain, unencrypted socket.
 
 error
 Asio transport errors.
 
 socket
 
 tls_socket
 A socket policy for the asio transport that implements a TLS encrypted socket by wrapping with an asio::ssl::stream.
 

Classes

class  connection
 Asio based connection transport component. More...
 
class  custom_alloc_handler
 
class  endpoint
 Asio based endpoint transport component. More...
 
class  handler_allocator
 

Typedefs

typedef lib::function< void(lib::asio::error_code const &ec, size_t bytes_transferred)> async_read_handler
 
typedef lib::function< void(lib::asio::error_code const &ec, size_t bytes_transferred)> async_write_handler
 
typedef lib::function< void(lib::error_code const &ec)> pre_init_handler
 
typedef lib::function< void(connection_hdl)> tcp_init_handler
 

Functions

template<typename Handler >
custom_alloc_handler< Handler > make_custom_alloc_handler (handler_allocator &a, Handler h)
 

Detailed Description

Transport policy that uses asio.

This policy uses a single asio io_service to provide transport services to a WebSocket++ endpoint.

Typedef Documentation

typedef lib::function<void (lib::asio::error_code const & ec, size_t bytes_transferred)> websocketpp::transport::asio::async_read_handler

Definition at line 143 of file base.hpp.

typedef lib::function<void (lib::asio::error_code const & ec, size_t bytes_transferred)> websocketpp::transport::asio::async_write_handler

Definition at line 149 of file base.hpp.

typedef lib::function<void (lib::error_code const & ec)> websocketpp::transport::asio::pre_init_handler

Definition at line 151 of file base.hpp.

Definition at line 58 of file connection.hpp.

Function Documentation

template<typename Handler >
custom_alloc_handler<Handler> websocketpp::transport::asio::make_custom_alloc_handler ( handler_allocator a,
Handler  h 
)
inline