Documentation
¶
Overview ¶
Deprecated: This package has moved into go-libp2p as a sub-package: github.com/libp2p/go-libp2p/p2p/net/nat.
Index ¶
Constants ¶
const CacheTime = time.Second * 15
CacheTime is the time a mapping will cache an external address for Deprecated: use github.com/libp2p/go-libp2p/p2p/net/nat.CacheTime instead.
const MappingDuration = time.Second * 60
MappingDuration is a default port mapping duration. Port mappings are renewed every (MappingDuration / 3) Deprecated: use github.com/libp2p/go-libp2p/p2p/net/nat.MappingDuration instead.
Variables ¶
var ErrNoMapping = nat.ErrNoMapping
ErrNoMapping signals no mapping exists for an address Deprecated: use github.com/libp2p/go-libp2p/p2p/net/nat.ErrNoMapping instead.
Functions ¶
This section is empty.
Types ¶
type Mapping ¶
Mapping represents a port mapping in a NAT. Deprecated: use github.com/libp2p/go-libp2p/p2p/net/nat instead.
type NAT ¶
NAT is an object that manages address port mappings in NATs (Network Address Translators). It is a long-running service that will periodically renew port mappings, and keep an up-to-date list of all the external addresses. Deprecated: use github.com/libp2p/go-libp2p/p2p/net/nat.Nat instead.