-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[wasi] Support wasi-sockets
and wasi-http
#98957
Comments
Tagging subscribers to this area: @dotnet/ncl Issue DetailsWASI 0.2.0 introduces two new networking APIs: wasi-sockets (for TCP/UDP networking and hostname lookup) and wasi-http (a high-level API for handling inbound HTTP requests and sending outbound ones). Ideally, the WASI port of the .NET should support both. Dave Bakker and I have implemented Given that there's no C standard library or POSIX interface for HTTP, it won't be supported as part of I should note that I have close to zero experience with .NET, so I'm happy to defer to the experts here about the details of how all this should proceed. I'm also happy to learn and contribute as appropriate.
|
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsWASI 0.2.0 introduces two new networking APIs: wasi-sockets (for TCP/UDP networking and hostname lookup) and wasi-http (a high-level API for handling inbound HTTP requests and sending outbound ones). Ideally, the WASI port of the .NET should support both. Dave Bakker and I have implemented Given that there's no C standard library or POSIX interface for HTTP, it won't be supported as part of I should note that I have close to zero experience with .NET, so I'm happy to defer to the experts here about the details of how all this should proceed. I'm also happy to learn and contribute as appropriate.
|
Would |
Unlike |
let's do it 😄 |
WASI 0.2.0 introduces two new networking APIs: wasi-sockets (for TCP/UDP networking and hostname lookup) and wasi-http (a high-level API for handling inbound HTTP requests and sending outbound ones). Ideally, the WASI port of the .NET should support both.
Dave Bakker and I have implemented
wasi-sockets
in a temporary fork ofwasi-libc
, and I'm currently in the process of incrementally merging that work upstream, with the aim of making it available as part of the forthcoming WASI-SDK 22 release. I've also created temporary forks of Rust and CPython based on thewasi-libc
work and plan to upstream those changes as well. Similarly, I'm hoping it will be straightforward to addwasi-sockets
support to .NET as well by way of the POSIX APIs provided bywasi-libc
.Given that there's no C standard library or POSIX interface for HTTP, it won't be supported as part of
wasi-libc
, so porting e.g.System.Net.Http
to usewasi-http
will presumably involve wrappingwit-bindgen
-generated C or C# code, depending on how solid the C# binding generator is.I should note that I have close to zero experience with .NET, so I'm happy to defer to the experts here about the details of how all this should proceed. I'm also happy to learn and contribute as appropriate.
The text was updated successfully, but these errors were encountered: