BaseChannel<C extends SelectableChannel> class
abstract
- Inheritance
-
- Object
- AddressPairObject
- BaseChannel
- Implemented types
- Implementers
Constructors
- BaseChannel({SocketAddress? remote, SocketAddress? local})
Properties
- className → String
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAlive → bool
-
no setteroverride
- isAvailable → bool
-
ready for reading
no setteroverride
- isBlocking → bool
-
no setteroverride
- isBound → bool
-
no setteroverride
- isClosed → bool
-
Tells whether or not this channel is open.
no setteroverride
- isConnected → bool
-
no setteroverride
- isVacant → bool
-
ready for writing
no setteroverride
- localAddress ↔ SocketAddress?
-
getter/setter pairinherited
- reader ↔ SocketReader
-
latefinal
- remoteAddress ↔ SocketAddress?
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- socket → C?
-
no setter
- status → ChannelStatus
-
Channel State Order
no setteroverride
- writer ↔ SocketWriter
-
latefinal
Methods
-
bind(
SocketAddress local) → Future< NetworkChannel?> -
override
-
checkAvailable(
C sock) → bool -
checkVacant(
C sock) → bool -
close(
) → Future< void> -
Closes this stream and releases any system resources associated
with it. If the stream is already closed then invoking this
method has no effect.
override
-
configureBlocking(
bool block) → SelectableChannel? -
override
-
connect(
SocketAddress remote) → Future< NetworkChannel?> -
override
-
createReader(
) → SocketReader -
createWriter(
) → SocketWriter -
disconnect(
) → Future< ByteChannel?> -
override
-
doBind(
C sock, SocketAddress local) → Future< bool> -
doConnect(
C sock, SocketAddress remote) → Future< bool> -
doDisconnect(
C sock) → Future< bool> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
int maxLen) → Future< Uint8List?> -
Reads a sequence of bytes from this channel into the given buffer.
override
-
receive(
int maxLen) → Future< Pair< Uint8List?, SocketAddress?> > -
Receives a data package via this channel.
override
-
send(
Uint8List src, SocketAddress target) → Future< int> -
Sends a data package via this channel.
override
-
setSocket(
C? sock) → Future< void> - Set inner socket for this channel
-
toString(
) → String -
A string representation of this object.
override
-
write(
Uint8List src) → Future< int> -
Writes a sequence of bytes to this channel from the given buffer.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited