Crow  1.1
A C++ microframework for the web
Loading...
Searching...
No Matches
crow::SSLAdaptor Struct Reference

Public Types

using context = asio::ssl::context
using ssl_socket_t = asio::ssl::stream<tcp::socket>

Public Member Functions

 SSLAdaptor (asio::io_context &io_context, context *ctx)
asio::ssl::stream< tcp::socket > & socket ()
tcp::socket::lowest_layer_type & raw_socket ()
tcp::endpoint remote_endpoint ()
std::string address () const
 Get the IP address of the remote endpoint, empty when unavailable (socket already closed).
uint16_t remote_port () const
 Get the TCP port of the remote endpoint, 0 when unavailable (socket already closed).
bool is_open ()
void close ()
void shutdown_readwrite ()
void shutdown_write ()
void shutdown_read ()
asio::io_context & get_io_context ()
template<typename F>
void start (F f)

Public Attributes

std::unique_ptr< asio::ssl::stream< tcp::socket > > ssl_socket_

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