|
Orbit Framework
An ultra-modern, asynchronous, cross-platform C++ Web Framework.
|
Represents a single QUIC connection. More...
#include <QuicConnection.hpp>
Public Member Functions | |
| QuicConnection (QuicConnectionManager &manager, const ngtcp2_cid &client_dcid, const ngtcp2_cid &client_scid, const ngtcp2_cid &server_scid, const sockaddr_in &remote_addr, SSL_CTX *ssl_ctx) | |
| Constructs a QuicConnection. | |
| ~QuicConnection () | |
| void | process_packet (const uint8_t *data, size_t datalen, const sockaddr_in &remote_addr) |
| Processes an incoming QUIC packet. | |
| void | handle_expiry () |
| Handles connection expiry. | |
| void | send_pending_data () |
| Sends any pending data for the connection. | |
Represents a single QUIC connection.
| server::QuicConnection::QuicConnection | ( | QuicConnectionManager & | manager, |
| const ngtcp2_cid & | client_dcid, | ||
| const ngtcp2_cid & | client_scid, | ||
| const ngtcp2_cid & | server_scid, | ||
| const sockaddr_in & | remote_addr, | ||
| SSL_CTX * | ssl_ctx | ||
| ) |
Constructs a QuicConnection.
| manager | The QUIC connection manager. |
| client_dcid | Client destination connection ID. |
| client_scid | Client source connection ID. |
| server_scid | Server source connection ID. |
| remote_addr | The remote address. |
| ssl_ctx | The SSL context. |
| server::QuicConnection::~QuicConnection | ( | ) |
| void server::QuicConnection::handle_expiry | ( | ) |
Handles connection expiry.
| void server::QuicConnection::process_packet | ( | const uint8_t * | data, |
| size_t | datalen, | ||
| const sockaddr_in & | remote_addr | ||
| ) |
Processes an incoming QUIC packet.
| data | The packet data. |
| datalen | The length of the data. |
| remote_addr | The remote address. |
| void server::QuicConnection::send_pending_data | ( | ) |
Sends any pending data for the connection.