android13/external/rust/crates/quiche/examples
liiir1985 7f62dcda9f initial 2024-06-22 20:45:49 +08:00
..
Makefile initial 2024-06-22 20:45:49 +08:00
README.md initial 2024-06-22 20:45:49 +08:00
cert-big.crt initial 2024-06-22 20:45:49 +08:00
cert.crt initial 2024-06-22 20:45:49 +08:00
cert.key initial 2024-06-22 20:45:49 +08:00
client.c initial 2024-06-22 20:45:49 +08:00
client.rs initial 2024-06-22 20:45:49 +08:00
gen-certs.sh initial 2024-06-22 20:45:49 +08:00
http3-client.c initial 2024-06-22 20:45:49 +08:00
http3-client.rs initial 2024-06-22 20:45:49 +08:00
http3-server.c initial 2024-06-22 20:45:49 +08:00
http3-server.rs initial 2024-06-22 20:45:49 +08:00
qpack-decode.rs initial 2024-06-22 20:45:49 +08:00
qpack-encode.rs initial 2024-06-22 20:45:49 +08:00
rootca.crt initial 2024-06-22 20:45:49 +08:00
server.c initial 2024-06-22 20:45:49 +08:00
server.rs initial 2024-06-22 20:45:49 +08:00

README.md

How to build C examples

Requirements

You will need the following libraries to build the C examples in this directory. You can use your OS package manager (brew, apt, pkg, ...) or install them from source.

Build

Simply run make in this directory.

% make clean
% make

Examples Docker image

You can experiment with http3-client, http3-server, client and server using Docker.

The Examples Dockerfile builds a Debian image.

To build:

docker build -t cloudflare-quiche .

To make an HTTP/3 request:

docker run -it cloudflare-quiche http3-client https://cloudflare-quic.com