package
0.0.0-20250128101304-ea1d59d1c274
Repository: https://github.com/magicwave-io/go-libp2p.git
Documentation: pkg.go.dev
# Functions
New constructs and sets up a new *BasicHost with given Network and options.
NewHost constructs a new *BasicHost and activates it by attaching its stream and connection handlers to the given inet.Network.
Create a NAT manager.
# Constants
NATPortMap makes the host attempt to open port-mapping in NAT devices for all its listeners.
# Variables
DefaultAddrsFactory is the default value for HostOpts.AddrsFactory.
DefaultNegotiationTimeout is the default value for HostOpts.NegotiationTimeout.
# Interfaces
A simple interface to manage NAT devices.
# Type aliases
AddrsFactory functions can be passed to New in order to override addresses returned by Addrs.
Option is a type used to pass in options to the host.