LLFIO
v2.00
|
A process-wide registry of tls_socket_source
.
More...
#include "tls_socket_handle.hpp"
Static Public Member Functions | |
static QUICKCPPLIB_NODISCARD bool | empty () noexcept |
True if there are no socket sources known to this registry. | |
static size_t | size () noexcept |
The current total number of socket sources known to this registry. | |
static span< tls_socket_source_implementation_information > | sources (span< tls_socket_source_implementation_information > tofill, tls_socket_source_implementation_features set=tls_socket_source_implementation_features::none, tls_socket_source_implementation_features mask=tls_socket_source_implementation_features::none) noexcept |
static tls_socket_source_implementation_information | default_source (tls_socket_source_implementation_features set=tls_socket_source_implementation_features::none, tls_socket_source_implementation_features mask=tls_socket_source_implementation_features::none) noexcept |
Convenience overload retrieving TLS socket sources, preferring system over third party implementations. | |
static result< void > | register_source (tls_socket_source_implementation_information i) noexcept |
Registers a new source of byte sockets. | |
static void | unregister_source (tls_socket_source_implementation_information i) noexcept |
Deregisters a new source of byte sockets. | |
A process-wide registry of tls_socket_source
.
Probably the most common use case for this will be fetching the default source of TLS secured sockets, so here is some example boilerplate:
Blocking:
Non-blocking:
Fuller fat example:
|
inlinestaticnoexcept |
Fills an array with implementation informations for the TLS socket sources in the registry with features matching set
after being masked with mask
. The default parameters fetch all sources.