Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/marten-seemann/libp2p-raw-quic-conn
- Owner: marten-seemann
- Created: 2024-12-15T13:42:53.000Z (27 days ago)
- Default Branch: master
- Last Pushed: 2024-12-15T16:58:11.000Z (26 days ago)
- Last Synced: 2024-12-15T17:39:24.724Z (26 days ago)
- Language: Go
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```