BaseHub class abstract

Implemented types
Implementers

Constructors

BaseHub()

Properties

allChannels → Iterable<Channel>
Get all channels
no setter
allConnections → Iterable<Connection>
no setter
delegate ↔ ConnectionDelegate?
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

cleanupChannels(Iterable<Channel> channels) → Future<void>
cleanupConnections(Iterable<Connection> connections) → Future<void>
closeChannel(Channel sock) → Future<void>
connect({required SocketAddress remote, SocketAddress? local}) → Future<Connection?>
Get connection with direction (remote, local)
override
createConnection({required SocketAddress remote, SocketAddress? local}) → Connection
Create connection with sock channel & addresses
createConnectionPool() → AddressPairMap<Connection>
driveChannel(Channel sock) → Future<bool>
driveChannels(Iterable<Channel> channels) → Future<int>
driveConnections(Iterable<Connection> connections) → Future<void>
getConnection({required SocketAddress remote, SocketAddress? local}) → Connection?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open({SocketAddress? remote, SocketAddress? local}) → Future<Channel?>
Get opened channel with direction (remote, local)
inherited
process() → Future<bool>
Do the job
override
removeChannel(Channel? channel, {SocketAddress? remote, SocketAddress? local}) → Channel?
Remove socket channel
removeConnection(Connection? conn, {required SocketAddress remote, SocketAddress? local}) → Connection?
setConnection(Connection conn, {required SocketAddress remote, SocketAddress? local}) → Connection?
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

MSS ↔ int
getter/setter pair