|
Nexus HTTP/3
A QUIC and HTTP/3 library
|
a generic QUIC connection that can initiate outgoing streams and accept incoming streams More...
#include <nexus/quic/connection.hpp>
Public Types | |
| using | executor_type = detail::connection_impl::executor_type |
| the polymorphic executor type, boost::asio::any_io_executor | |
Public Member Functions | |
| connection (acceptor &a) | |
| construct a server-side connection for use with accept() | |
| connection (client &c) | |
| construct a client-side connection for use with connect() | |
| connection (client &c, const udp::endpoint &endpoint, const char *hostname) | |
| open a connection to the given remote endpoint and hostname. this initiates the TLS handshake, but returns immediately without waiting for the handshake to complete | |
| executor_type | get_executor () const |
| return the associated io executor | |
| bool | is_open () const |
| determine whether the connection is open | |
| connection_id | id (error_code &ec) const |
| return the connection id if open | |
| connection_id | id () const |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| udp::endpoint | remote_endpoint (error_code &ec) const |
| return the remote's address/port if open | |
| udp::endpoint | remote_endpoint () const |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| template<typename CompletionToken > | |
| decltype(auto) | async_connect (stream &s, CompletionToken &&token) |
| open an outgoing stream | |
| void | connect (stream &s, error_code &ec) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| void | connect (stream &s) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| template<typename CompletionToken > | |
| decltype(auto) | async_accept (stream &s, CompletionToken &&token) |
| accept an incoming stream | |
| void | accept (stream &s, error_code &ec) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| void | accept (stream &s) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| void | go_away (error_code &ec) |
| stop initiating or accepting new streams | |
| void | go_away () |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| void | close (error_code &ec) |
| close the connection, along with any related streams | |
| void | close () |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
a generic QUIC connection that can initiate outgoing streams and accept incoming streams