From 73806f2e552cfad5815bdd7758838d5e6313a314 Mon Sep 17 00:00:00 2001
From: Frank Rehwinkel
connected
closed
See https://github.com/WebAssembly/wasi-sockets/TcpSocketOperationalSemantics.md
-for a more information.Note: Except where explicitly mentioned, whenever this documentation uses
the term "bound" without backticks it actually means: in the bound
state or higher.
@@ -1700,7 +1700,7 @@ in progress at the time of calling subscribe
(if any). Theoreticall
subscribe
only has to be called once per socket and can then be
(re)used for the remainder of the socket's lifetime.
See https://github.com/WebAssembly/wasi-sockets/TcpSocketOperationalSemantics.md#Pollable-readiness -for a more information.
+for more information.Note: this function is here for WASI Preview2 only.
It's planned to be removed when future
is natively supported in Preview3.
connect-in-progress
connected
closed
-See https://github.com/WebAssembly/wasi-sockets/TcpSocketOperationalSemantics.md
+See https://github.com/WebAssembly/wasi-sockets/blob/main/TcpSocketOperationalSemantics.md
for more information.Note: Except where explicitly mentioned, whenever this documentation uses @@ -1279,7 +1279,7 @@ don't want to make use of this ability can simply call the native
Connect to a remote endpoint.
On success:
connection
state.connected
state.After a failed connection attempt, the socket will be in the closed
@@ -1699,7 +1699,7 @@ their success or failure, after which the method can be retried.
subscribe
(if any). Theoretically,
subscribe
only has to be called once per socket and can then be
(re)used for the remainder of the socket's lifetime.
-See https://github.com/WebAssembly/wasi-sockets/TcpSocketOperationalSemantics.md#Pollable-readiness +
See https://github.com/WebAssembly/wasi-sockets/blob/main/TcpSocketOperationalSemantics.md#pollable-readiness for more information.
Note: this function is here for WASI Preview2 only.
It's planned to be removed when future
is natively supported in Preview3.
both
: Same effect as receive
& send
combined.This function is idempotent. Shutting a down a direction more than once +
This function is idempotent; shutting down a direction more than once
has no effect and returns ok
.
The shutdown function does not close (drop) the socket.