Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/marten-seemann/libp2p-raw-quic-conn


https://github.com/marten-seemann/libp2p-raw-quic-conn

Last synced: 19 days ago
JSON representation

Awesome Lists containing this project

README

        

# Using raw QUIC connections with libp2p

This example how to use libp2p's hole punching capabilities to establish a direction raw QUIC connection (i.e. a quic-go `quic.Connection`) to a peer.

## Usage

Run a server behind a NAT (and enable logging for hole punching):
```sh
GOLOG_LOG_LEVEL="p2p-holepunch=debug" go run server/main.go
```

Run a client that connects to the server:
```sh
GOLOG_LOG_LEVEL="p2p-holepunch=debug" go run client.go
```