HolePunchServiceImpl class

Implementation of the holepunch service

Implemented types

Constructors

HolePunchServiceImpl.new(Host _host, IDService _ids, List<MultiAddr> _listenAddrs(), {HolePunchOptions? options})
Creates a new holepunch service

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() Future<void>
Close stops the holepunch service.
override
directConnect(PeerId peerId) Future<void>
DirectConnect attempts to make a direct connection with a remote peer. It first attempts a direct dial (if we have a public address of that peer), and then coordinates a hole punch over the given relay connection.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start() Future<void>
Start starts the holepunch service.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited