BasicHolePunchTracer class

Basic tracer implementation for the holepunch protocol

Implemented types
Available extensions

Constructors

BasicHolePunchTracer.new()
Creates a new basic tracer

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() → void
Closes the tracer
override
close() → void

Available on HolePunchTracer, provided by the HolePunchTracerExt extension

Closes the tracer
directDialFailed(PeerId peerId, Duration dt, Object err) → void
Called when a direct dial fails
override
directDialSuccessful(PeerId peerId, Duration dt) → void
Called when a direct dial is successful
override
endHolePunch(PeerId peerId, Duration dt, Object? err) → void
Called when a hole punch ends
override
holePunchAttempt(PeerId peerId) → void
Called when a hole punch attempt is made
override
holePunchFinished(String side, int attempts, List<MultiAddr> addrs, List<MultiAddr> obsAddrs, Conn? conn) → void
Called when a hole punch finishes
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
protocolError(PeerId peerId, Object err) → void
Called when a protocol error occurs
override
start() → void
Starts the tracer
startHolePunch(PeerId peerId, List<MultiAddr> addrs, int rtt) → void
Called when a hole punch starts
override
toString() String
A string representation of this object.
inherited

Operators

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