p2p/protocol/holepunch/holepunch library

Package holepunch provides the holepunch service for libp2p.

The holepunch service provides direct connection establishment capabilities for libp2p nodes behind NATs/firewalls. It coordinates hole punching between peers to establish direct connections.

This is a port of the Go implementation from go-libp2p/p2p/protocol/holepunch to Dart, using native Dart idioms.

Functions

newHolePunchService(Host host, IDService ids, List<MultiAddr> listenAddrs(), {HolePunchOptions? options}) Future<HolePunchService>
Creates a new holepunch service.