TCPTransport class
TCP implementation of the Transport interface
- Implemented types
Constructors
- TCPTransport.new({required ResourceManager resourceManager, TransportConfig? config, ConnManager? connManager})
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 - resourceManager → ResourceManager
-
final
- 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> -
Closes all connections and cleans up resources
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