TLS enabled Asio endpoint socket component. More...
#include <tls.hpp>
Public Types | |
typedef endpoint | type |
The type of this endpoint socket component. More... | |
typedef connection | socket_con_type |
The type of the corresponding connection socket component. More... | |
typedef socket_con_type::ptr | socket_con_ptr |
The type of a shared pointer to the corresponding connection socket component. More... | |
Public Member Functions | |
endpoint () | |
bool | is_secure () const |
Checks whether the endpoint creates secure connections. More... | |
void | set_socket_init_handler (socket_init_handler h) |
Set socket init handler. More... | |
void | set_tls_init_handler (tls_init_handler h) |
Set TLS init handler. More... | |
Protected Member Functions | |
lib::error_code | init (socket_con_ptr scon) |
Initialize a connection. More... | |
TLS enabled Asio endpoint socket component.
transport::asio::tls_socket::endpoint implements a secure endpoint socket component that uses Asio's ssl::stream to wrap an ip::tcp::socket.
|
inlineexplicit |
|
inline |
Checks whether the endpoint creates secure connections.
Definition at line 430 of file tls.hpp.
Referenced by websocketpp::transport::asio::endpoint< config >::is_secure().
|
inline |
Set socket init handler.
The socket init handler is called after a connection's socket is created but before it is used. This gives the end application an opportunity to set asio socket specific parameters.
h | The new socket_init_handler |
Definition at line 442 of file tls.hpp.
Referenced by main(), and perftest::perftest().
|
inline |
Set TLS init handler.
The tls init handler is called when needed to request a TLS context for the library to use. A TLS init handler must be set and it must return a valid TLS context in order for this endpoint to be able to initialize TLS connections
h | The new tls_init_handler |
Definition at line 455 of file tls.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), and main().
|
inlineprotected |
Initialize a connection.
Called by the transport after a new connection is created to initialize the socket component of the connection.
scon | Pointer to the socket component of the connection |
Definition at line 468 of file tls.hpp.
Referenced by websocketpp::transport::asio::endpoint< config >::init().