p2p/host/basic/index library
Basic host implementation for libp2p.
This package provides a basic implementation of the Host interface.
Classes
- BasicHost
- BasicHost is the basic implementation of the Host interface. This particular host implementation:
- NATManager
- NATManager is a production-ready interface to manage NAT devices and mappings. It leverages advanced NAT discovery, behavior tracking, and mapping logic.
Constants
- defaultNegotiationTimeout → const Duration
- Default negotiation timeout
Functions
-
defaultAddrsFactory(
List< MultiAddr> addrs) → List<MultiAddr> - Default addresses factory function. Filters out loopback and unspecified addresses from the provided list.
-
newNATManager(
Network net, {StunClientPool? stunClientPool, Duration? behaviorCheckInterval}) → NATManager - Creates a new NAT manager.