StreamChannel class
- Inheritance
-
- Object
- AddressPairObject
- BaseChannel<
SocketChannel> - StreamChannel
Constructors
- StreamChannel({SocketAddress? remote, SocketAddress? local})
Properties
- className → String
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAlive → bool
-
no setterinherited
- isAvailable → bool
-
ready for reading
no setterinherited
- isBlocking → bool
-
no setterinherited
- isBound → bool
-
no setterinherited
- isClosed → bool
-
Tells whether or not this channel is open.
no setterinherited
- isConnected → bool
-
no setterinherited
- isVacant → bool
-
ready for writing
no setterinherited
- localAddress ↔ SocketAddress?
-
getter/setter pairinherited
- reader ↔ SocketReader
-
latefinalinherited
- remoteAddress ↔ SocketAddress?
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- socket → SocketChannel?
-
no setterinherited
- status → ChannelStatus
-
Channel State Order
no setterinherited
- writer ↔ SocketWriter
-
latefinalinherited
Methods
-
bind(
SocketAddress local) → Future< NetworkChannel?> -
inherited
-
checkAvailable(
SocketChannel sock) → bool -
inherited
-
checkVacant(
SocketChannel sock) → bool -
inherited
-
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.
inherited
-
configureBlocking(
bool block) → SelectableChannel? -
inherited
-
connect(
SocketAddress remote) → Future< NetworkChannel?> -
inherited
-
createReader(
) → SocketReader -
override
-
createWriter(
) → SocketWriter -
override
-
disconnect(
) → Future< ByteChannel?> -
inherited
-
doBind(
SocketChannel sock, SocketAddress local) → Future< bool> -
inherited
-
doConnect(
SocketChannel sock, SocketAddress remote) → Future< bool> -
inherited
-
doDisconnect(
SocketChannel sock) → Future< bool> -
inherited
-
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.
inherited
-
receive(
int maxLen) → Future< Pair< Uint8List?, SocketAddress?> > -
Receives a data package via this channel.
inherited
-
send(
Uint8List src, SocketAddress target) → Future< int> -
Sends a data package via this channel.
inherited
-
setSocket(
SocketChannel? sock) → Future< void> -
Set inner socket for this channel
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
Uint8List src) → Future< int> -
Writes a sequence of bytes to this channel from the given buffer.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited