|
Network System 0.1.1
High-performance modular networking library for scalable client-server applications
|
#include <iostream>#include <string>#include <memory>#include <thread>#include <chrono>#include <vector>#include <atomic>#include <condition_variable>#include <mutex>#include "internal/experimental/quic_client.h"
Go to the source code of this file.
Classes | |
| class | QuicClientDemo |
| Simple QUIC client demo. More... | |
Macros | |
| #define | NETWORK_USE_EXPERIMENTAL |
Functions | |
| void | demo_with_config () |
| Example with custom configuration. | |
| int | main (int argc, char *argv[]) |
| #define NETWORK_USE_EXPERIMENTAL |
BSD 3-Clause License Copyright (c) 2024, Network System Project
QUIC Client Example
This example demonstrates how to use the QUIC client API to connect to a QUIC server and send/receive data.
Note: This sample uses messaging_quic_client directly instead of quic_facade because it needs QUIC-specific features like multi-stream support, 0-RTT, and connection statistics. The quic_facade returns i_protocol_client which provides a unified interface but doesn't expose QUIC-specific methods.
Key features demonstrated:
Definition at line 33 of file quic_client_example.cpp.
| void demo_with_config | ( | ) |
Example with custom configuration.
Definition at line 253 of file quic_client_example.cpp.
References config.
Referenced by main().

| int main | ( | int | argc, |
| char * | argv[] ) |
Definition at line 281 of file quic_client_example.cpp.
References demo_with_config(), and QuicClientDemo::run().
