Transport class abstract
Represents a libp2p transport protocol (e.g., TCP, QUIC)
- Implementers
Constructors
Properties
- config → TransportConfig
-
The configuration for this transport
no setter
- 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 setter - 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
-
canListen(
MultiAddr addr) → bool - Returns true if this transport can listen on the given multiaddress
-
dial(
MultiAddr addr, {Duration? timeout}) → Future< Conn> - Dials a peer at the given multiaddress with optional timeout override Returns a connection to the peer if successful
-
dispose(
) → Future< void> -
listen(
MultiAddr addr) → Future< Listener> - Starts listening on the given multiaddress Returns a listener that can accept incoming connections
-
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