IdentifyService class

Implementation of the identify service

Implemented types

Constructors

IdentifyService.new(Host host, {IdentifyOptions? options})
Creates a new identify service

Properties

disableObservedAddrManager bool
Whether to disable the observed address manager
final
disableSignedPeerRecord bool
Whether to disable signed peer records
final
hashCode int
The hash code for this object.
no setterinherited
host Host
The host this service is running on
final
metricsTracer MetricsTracer?
Metrics tracer
final
protocolVersion String
The protocol version to advertise
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userAgent String
The user agent to advertise
final

Methods

close() Future<void>
Close stops the identify service.
override
handleIdentifyRequest(P2PStream stream, PeerId peerId) Future<void>
handleIdentifyResponse(P2PStream stream, bool isPush) Future<void>
handlePush(P2PStream stream, PeerId peerId) Future<void>
identifyConn(Conn conn) Future<void>
IdentifyConn synchronously triggers an identify request on the connection and waits for it to complete. If the connection is being identified by another caller, this call will wait. If the connection has already been identified, it will return immediately.
override
identifyWait(Conn conn) Future<void>
IdentifyWait triggers an identify (if the connection has not already been identified) and returns a future that completes when the identify protocol completes.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
observedAddrsFor(MultiAddr local) List<MultiAddr>
ObservedAddrsFor returns the addresses peers have reported we've dialed from, for a specific local address.
override
ownObservedAddrs() List<MultiAddr>
OwnObservedAddrs returns the addresses peers have reported we've dialed from
override
sendIdentifyResp(P2PStream stream, bool isPush) Future<void>
signedPeerRecordFromMessage(Identify msg) Future<Envelope?>
start() Future<void>
Start starts the identify service.
override
toString() String
A string representation of this object.
inherited

Operators

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