Documentation ¶
Index ¶
Constants ¶
View Source
const P_CIRCUIT = 290
Variables ¶
View Source
var ( AutoNATServiceDialTimeout = 42 * time.Second AutoNATServiceResetInterval = 1 * time.Minute AutoNATServiceThrottle = 3 )
Functions ¶
This section is empty.
Types ¶
type AutoNATService ¶
type AutoNATService struct {
// contains filtered or unexported fields
}
AutoNATService provides NAT autodetection services to other peers
func NewAutoNATService ¶
func NewAutoNATService(ctx context.Context, h host.Host, opts ...libp2p.Option) (*AutoNATService, error)
NewAutoNATService creates a new AutoNATService instance attached to a host
Click to show internal directories.
Click to hide internal directories.