package
0.41.0
Repository: https://github.com/libp2p/go-libp2p.git
Documentation: pkg.go.dev

# Packages

# Functions

NewService creates a new service that can be used for hole punching The Service runs on all hosts that support the DCUtR protocol, no matter if they are behind a NAT / firewall or not.
WithAddrFilter is a Service option that enables multiaddress filtering.
WithMetricsAndEventTracer enables holepunch tracking with MetricsTracer and EventTracer.
WithMetricsTracer enables holepunch Tracing with MetricsTracer mt.
WithTracer enables holepunch tracing with EventTracer et.

# Constants

Event Types.
Event Types.
Event Types.
Protocol is the libp2p protocol for Hole Punching.
Event Types.
Event Types.

# Variables

ErrClosed is returned when the hole punching is closed.
ErrHolePunchActive is returned from DirectConnect when another hole punching attempt is currently running.
StreamTimeout is the timeout for the hole punch protocol stream.

# Structs

Event Objects.
The Service runs on every node that supports the DCUtR protocol.

# Interfaces

AddrFilter defines the interface for the multi address filtering.

# Type aliases