Nexus HTTP/3
A QUIC and HTTP/3 library
|
a context object representing the global initialization of the nexus QUIC/HTTP library, and its consequent global cleanup on destruction More...
#include <nexus/global/context.hpp>
Public Member Functions | |
context () noexcept | |
construct an uninitialized context | |
context (context &&o) noexcept | |
move construct, claiming ownership of another context's cleanup | |
context & | operator= (context &&o) noexcept |
move assign, swapping ownership with another context | |
~context () | |
perform global shutdown if initialized | |
operator bool () const | |
return true if the context represents successful initialization | |
void | log_to_stderr (const char *level) |
enable log output to stderr, where the log level is one of: emerg, alert, crit, error, warn, notice, info, debug | |
void | shutdown () |
perform global shutdown of an initialized context | |
Related Functions | |
(Note that these are not member functions.) | |
context | init_client (error_code &ec) |
initialize the library for clients only | |
context | init_client () |
initialize the library for clients only | |
context | init_server (error_code &ec) |
initialize the library for server only | |
context | init_server () |
initialize the library for server only | |
context | init_client_server (error_code &ec) |
initialize the library for client and server use | |
context | init_client_server () |
initialize the library for client and server use | |
a context object representing the global initialization of the nexus QUIC/HTTP library, and its consequent global cleanup on destruction