New GitHub issue #96320 from tiran:<br>
<hr>
<pre>
# Feature or enhancement
WASI has limited support for BSD-like sockets in snapshot preview 1. tl;dr it is not possible to open new connections. The WASI runtime must pass a socket file descriptor into the process. Preview 1 supports both connected client-side socket and `accept()` on bound listening sockets. `poll()` is available as well, although limited to `poll_oneoff`. bind, connect, sendto / recvfrom, DNS lookup and NETDB (gethostbyname, getaddrinfo, getservbyname) etc are not available.
Let's document the missing functions and address the remaining issues to get socketserver and simple clients working.
# Previous discussion
GH-95179 addressed several missing functions that prevented us to compile the socket module on WASI.
</pre>
<hr>
<a href="https://github.com/python/cpython/issues/96320">View on GitHub</a>
<p>Labels: type-feature</p>
<p>Assignee: </p>