quic_lib 1.3.0
quic_lib: ^1.3.0 copied to clipboard
A pure-Dart QUIC, HTTP/3, WebTransport, and libp2p transport stack.
example/README.md
quic_lib Examples #
This directory contains minimal example applications demonstrating how to use the quic_lib package.
Examples #
echo_client.dart— Demonstrates creating a [QuicEndpoint], connecting to a server, opening a bidirectional stream, and preparing a STREAM frame for sending.echo_server.dart— Demonstrates binding a [QuicEndpoint] to a local address, polling active connections, and registering each connection in its own isolate.
Running the examples #
Echo server #
dart run echo_server.dart
The server will listen on 127.0.0.1:4433. Press Ctrl+C to stop it gracefully.
Echo client #
In a separate terminal, run:
dart run echo_client.dart
The client will bind to an ephemeral port, connect to 127.0.0.1:4433, open a bidirectional stream, and prepare a packet containing a simple "Hello, QUIC!" message.
Note #
These examples are scaffolding that demonstrate the public API surface. Some end-to-end wire paths (such as fully completing a handshake over UDP) may still be under active development. See the package README and doc/ folder for the full architecture and roadmap.