net.hpp file
Namespaces
- namespace nxt
- namespace nxt::io
- namespace nxt::io::net
Classes
- struct nxt::io::net::endpoint
- Host and port to connect to.
- struct nxt::io::net::resolved_target
- DNS resolution result for a target endpoint.
- class nxt::io::net::tcp_transport
- Async TCP transport with the read/write shape used by HTTP helpers.
- class nxt::io::net::tls_transport
- Async TLS transport with the read/write shape used by HTTP helpers.
Functions
-
auto connect_tcp(std::
unique_ptr<nxt:: scheduler>& sched, endpoint target, std:: chrono:: milliseconds timeout = std:: chrono:: milliseconds{5000}) → nxt:: task<tcp_transport> - Resolve and open a TCP connection to an endpoint.
-
auto connect_tls(std::
unique_ptr<nxt:: scheduler>& sched, endpoint target, std:: chrono:: milliseconds timeout = std:: chrono:: milliseconds{5000}) → nxt:: task<tls_transport> - Resolve, open, and TLS-wrap a connection to an endpoint.
-
auto resolve_target(std::
unique_ptr<nxt:: scheduler>& sched, endpoint target, std:: chrono:: milliseconds timeout = std:: chrono:: milliseconds{5000}) → nxt:: task<resolved_target> - Resolve an endpoint using the scheduler-owned DNS resolver.
Defines
- #define LIBCORO_FEATURE_NETWORKING
- #define LIBCORO_FEATURE_TLS
- #define NXT_UNDEF_LIBCORO_FEATURE_NETWORKING
- #define NXT_UNDEF_LIBCORO_FEATURE_TLS