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) |
Transport policy that uses asio.
This policy uses a single asio io_service to provide transport services to a WebSocket++ endpoint.
typedef lib::function<void (lib::asio::error_code const & ec, size_t bytes_transferred)> websocketpp::transport::asio::async_read_handler |
typedef lib::function<void (lib::asio::error_code const & ec, size_t bytes_transferred)> websocketpp::transport::asio::async_write_handler |
typedef lib::function<void (lib::error_code const & ec)> websocketpp::transport::asio::pre_init_handler |
typedef lib::function<void(connection_hdl)> websocketpp::transport::asio::tcp_init_handler |
Definition at line 58 of file connection.hpp.
|
inline |
Definition at line 128 of file base.hpp.
Referenced by websocketpp::transport::asio::connection< config >::async_read_at_least(), and websocketpp::transport::asio::connection< config >::async_write().