QuicTransport class

libp2p Transport implementation backed by the pure-Dart quic_lib package.

This adapter lets Libp2pRouter register a QUIC transport, advertise /udp/.../quic-v1 listen addresses, and dial/accept QUIC connections without requiring native FFI libraries.

Implemented types

Constructors

QuicTransport({TransportConfig? config})
Creates a new QUIC transport.

Properties

config TransportConfig
The configuration for this transport
final
hashCode int
The hash code for this object.
no setterinherited
protocols List<String>
Returns the list of protocols supported by this transport For example: '/ip4/tcp', '/ip6/tcp'
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

canDial(MultiAddr addr) bool
Returns true if this transport can dial the given multiaddress
override
canListen(MultiAddr addr) bool
Returns true if this transport can listen on the given multiaddress
override
dial(MultiAddr addr, {Duration? timeout}) Future<TransportConn>
Dials a peer at the given multiaddress with optional timeout override Returns a connection to the peer if successful
override
dispose() Future<void>
override
listen(MultiAddr addr) Future<Listener>
Starts listening on the given multiaddress Returns a listener that can accept incoming connections
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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