p2p/host/basic/natmgr library

NAT manager implementation for the basic host.

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

Classes

NATManager
NATManager is a production-ready interface to manage NAT devices and mappings. It leverages advanced NAT discovery, behavior tracking, and mapping logic.

Functions

newNATManager(Network net, {StunClientPool? stunClientPool, Duration? behaviorCheckInterval}) NATManager
Creates a new NAT manager.