package
0.10.1
Repository: https://github.com/torusresearch/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.

# Structs

BasicHost is the basic implementation of the host.Host interface.
HostOpts holds options that can be passed to NewHost in order to customize construction of the *BasicHost.

# 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.