WASIPreview3TcpConnection class final
Connected TCP I/O returned by a sockets backend.
Constructors
-
WASIPreview3TcpConnection({required WASIComponentStream<
int> incoming, required Future<WASIPreview3SocketResult< incomingDone, required WASIPreview3TcpWrite write, required WASIPreview3TcpFinishSend finishSend, required void closeReceive(), required WASIPreview3IpSocketAddress localAddress, required WASIPreview3IpSocketAddress remoteAddress, required void close()})void> > -
Creates connected TCP I/O.
const
Properties
- close → void Function()
-
Releases the connection.
final
- closeReceive → void Function()
-
Closes the receive direction while preserving the send direction.
final
- finishSend → WASIPreview3TcpFinishSend
-
Flushes and half-closes the send direction.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
incoming
→ WASIComponentStream<
int> -
Bytes received from the peer.
final
-
incomingDone
→ Future<
WASIPreview3SocketResult< void> > -
Terminal result for incoming.
final
- localAddress → WASIPreview3IpSocketAddress
-
Bound local address.
final
- remoteAddress → WASIPreview3IpSocketAddress
-
Connected peer address.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- write → WASIPreview3TcpWrite
-
Writes one bounded chunk.
final
Methods
-
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