Skip to the content.

🏠 Home | Next: Basic Usage >


Getting Started

To use cpp-quic, include the cppquic.hpp header in your project. It depends on cpp-udpnet (which transitively depends on cpp-pubsub and cpp-asyncworker).

Integration

You can have CMake automatically download and integrate cpp-quic and all its dependencies.

include(FetchContent)

FetchContent_Declare(
  cppquic
  GIT_REPOSITORY https://github.com/jonoton/cpp-quic.git
  GIT_TAG main
)
FetchContent_MakeAvailable(cppquic)

target_link_libraries(your_target PRIVATE cppquic::cppquic)

2. Manual Include

Since cpp-quic is a header-only library, you can simply copy cppquic.hpp into your project. You will also need cppudpnet.hpp, cpppubsub.hpp, and cppasyncworker.hpp from their respective repositories.

Prerequisites

Platform-Specific Notes

Dependencies

Dependency Purpose
cpp-udpnet UDP transport layer
cpp-pubsub Event-driven publish/subscribe messaging
cpp-asyncworker Thread pool and asynchronous worker management

All dependencies are automatically fetched by CMake’s FetchContent when using the recommended integration method.


🏠 Home Next: Basic Usage >