|
Network System 0.1.1
High-performance modular networking library for scalable client-server applications
|
Classes | |
| struct | quic_config |
| Configuration options for QUIC connections. More... | |
Functions | |
| auto | create_connection (const quic_config &config={}, std::string_view id="") -> std::unique_ptr< unified::i_connection > |
| Creates a QUIC connection (not yet connected) | |
| auto | connect (const unified::endpoint_info &endpoint, const quic_config &config={}, std::string_view id="") -> std::unique_ptr< unified::i_connection > |
| Creates and connects a QUIC connection in one call. | |
| auto | connect (std::string_view url, const quic_config &config={}, std::string_view id="") -> std::unique_ptr< unified::i_connection > |
| Creates and connects a QUIC connection using URL format. | |
| auto | create_listener (const quic_config &config, std::string_view id="") -> std::unique_ptr< unified::i_listener > |
| Creates a QUIC listener (not yet listening) | |
| auto | listen (const unified::endpoint_info &bind_address, const quic_config &config, std::string_view id="") -> std::unique_ptr< unified::i_listener > |
| Creates and starts a QUIC listener in one call. | |
| auto | listen (uint16_t port, const quic_config &config, std::string_view id="") -> std::unique_ptr< unified::i_listener > |
| Creates and starts a QUIC listener on a specific port. | |
|
nodiscard |
Creates and connects a QUIC connection in one call.
| endpoint | The remote endpoint to connect to |
| config | QUIC configuration options |
| id | Optional unique identifier for the connection |
This is a convenience function that creates a connection and immediately initiates the QUIC handshake to the specified endpoint.
Definition at line 85 of file quic.cpp.
References config, create_connection(), and kcenon::network::protocol::quic::quic_config::server_name.

|
nodiscard |
Creates and connects a QUIC connection using URL format.
| url | The URL to connect to (format: "quic://host:port" or "host:port") |
| config | QUIC configuration options |
| id | Optional unique identifier for the connection |
If server_name is not set in config, it will be extracted from the URL.
Definition at line 101 of file quic.cpp.
References config, create_connection(), and kcenon::network::protocol::quic::quic_config::server_name.

|
nodiscard |
Creates a QUIC connection (not yet connected)
| config | QUIC configuration options |
| id | Optional unique identifier for the connection |
The returned connection is not connected. Call connect() to establish the connection to a remote endpoint.
QUIC connections have built-in TLS 1.3 encryption, multiplexed streams, and support for connection migration.
Definition at line 74 of file quic.cpp.
References config.
Referenced by connect(), and connect().

|
nodiscard |
Creates a QUIC listener (not yet listening)
| config | QUIC configuration options (cert_file and key_file required) |
| id | Optional unique identifier for the listener |
The returned listener is not listening. Call start() to begin accepting connections.
QUIC servers require TLS certificates. The cert_file and key_file must be set in the configuration.
Definition at line 122 of file quic.cpp.
References config.
Referenced by listen().

|
nodiscard |
Creates and starts a QUIC listener in one call.
| bind_address | The local address to bind to |
| config | QUIC configuration options (cert_file and key_file required) |
| id | Optional unique identifier for the listener |
This is a convenience function that creates a listener and immediately starts listening on the specified address.
Definition at line 133 of file quic.cpp.
References config, and create_listener().
Referenced by listen().


|
nodiscard |
Creates and starts a QUIC listener on a specific port.
| port | The port number to listen on |
| config | QUIC configuration options (cert_file and key_file required) |
| id | Optional unique identifier for the listener |
Convenience overload that binds to all interfaces (0.0.0.0).
Definition at line 142 of file quic.cpp.
References config, and listen().
