QuicListener class

libp2p Listener implementation that wraps a quic_lib incoming connection stream.

Implemented types

Constructors

QuicListener({required Stream<Libp2pQuicConnection> stream, required MultiAddr addr, required MultiAddr localAddr})
Creates a listener around stream.

Properties

addr MultiAddr
The address this listener is bound to
no setteroverride
connectionStream Stream<TransportConn>
Stream of incoming connections
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
isClosed bool
Returns true if the listener is closed
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

accept() Future<TransportConn?>
Accepts an incoming connection Returns null if the listener is closed
override
close() Future<void>
Closes the listener
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
supportsAddr(MultiAddr addr) bool
Returns true if this listener supports the given multiaddress
override
toString() String
A string representation of this object.
inherited

Operators

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