TLS/SSL connectors.
More...
#include <connector.hpp>
|
using | socket_type = typename SocketConnector::socket_type |
| the underlying socket type. More...
|
|
using | handler = std::function< void(std::error_code, std::shared_ptr< stream >)> |
| Connect completion handler. More...
|
|
template<typename SocketConnector>
class irccd::tls_connector< SocketConnector >
TLS/SSL connectors.
- Template Parameters
-
◆ socket_type
template<typename SocketConnector >
the underlying socket type.
◆ tls_connector()
template<typename SocketConnector >
template<typename... Args>
Construct a secure layer transport server.
- Parameters
-
context | the SSL context |
args | the arguments to SocketConnector constructor |
◆ connect()
template<typename SocketConnector >
Start asynchronous connect.
Once the client is connected, the original acceptor must be kept until it is destroyed.
- Precondition
- another connect operation must not be running
-
handler != nullptr
- Parameters
-
Implements irccd::connector.
The documentation for this class was generated from the following file: