CommonHub class abstract

Inheritance
Implementers

Constructors

CommonHub()

Properties

allChannels Iterable<Channel>
Get all channels
no setteroverride
allConnections Iterable<Connection>
no setterinherited
delegate ConnectionDelegate?
getter/setter pairinherited
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>
inherited
cleanupConnections(Iterable<Connection> connections) Future<void>
inherited
closeChannel(Channel sock) Future<void>
inherited
connect({required SocketAddress remote, SocketAddress? local}) Future<Connection?>
Get connection with direction (remote, local)
inherited
createChannel({required SocketAddress remote, SocketAddress? local}) Channel
Create channel with socket & addresses
createChannelPool() AddressPairMap<Channel>
createConnection({required SocketAddress remote, SocketAddress? local}) Connection
Create connection with sock channel & addresses
inherited
createConnectionPool() AddressPairMap<Connection>
inherited
createSocketChannel({required SocketAddress remote, SocketAddress? local}) Future<SocketChannel?>
driveChannel(Channel sock) Future<bool>
inherited
driveChannels(Iterable<Channel> channels) Future<int>
inherited
driveConnections(Iterable<Connection> connections) Future<void>
inherited
getChannel({required SocketAddress remote, SocketAddress? local}) Channel?
getConnection({required SocketAddress remote, SocketAddress? local}) Connection?
inherited
logInfo(String msg) → void
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)
override
process() Future<bool>
Do the job
inherited
removeChannel(Channel? channel, {SocketAddress? remote, SocketAddress? local}) Channel?
Remove socket channel
override
removeConnection(Connection? conn, {required SocketAddress remote, SocketAddress? local}) Connection?
inherited
setChannel(Channel channel, {required SocketAddress remote, SocketAddress? local}) Channel?
setConnection(Connection conn, {required SocketAddress remote, SocketAddress? local}) Connection?
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

setSocket(SocketChannel socket, BaseChannel<SelectableChannel> channel) Future<bool>