UDXTransport class
UDX implementation of the Transport interface using dart_udx This implementation treats UDX as a multiplexing transport.
- Implemented types
Constructors
- UDXTransport.new({TransportConfig? config, required ConnManager connManager, UDX? udxInstance})
Properties
- config → TransportConfig
-
The configuration for this transport
final
- connectionManager → ConnManager
-
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 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