Skip to content
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

is WASI capable of doing networking? #71

Closed
andrewrk opened this issue May 19, 2019 · 3 comments
Closed

is WASI capable of doing networking? #71

andrewrk opened this issue May 19, 2019 · 3 comments

Comments

@andrewrk
Copy link

I don't see how these functions would work:

  • socket
  • accept
  • bind
  • listen
@sunfishcode
Copy link
Member

Right, those functions are not currently defined.in WASI libc.

It is possible they could be added in the future, by making sockets something that get passed into a program, or possibly by providing a capability to create/bind/accept/listen to certain addresses/ports/etc. to a program.

@Qix-
Copy link

Qix- commented Jul 4, 2019

Libc doesn't include networking functionality, those are instead provided by the system for which you are developing. I don't think wasi-libc should even include those, but instead focus on being a complete and stable WASM libc IMO.

@sunfishcode
Copy link
Member

The place to add networking support is WASI itself, which I assume will happen at some point. Once that's done, we can discuss how to add bind, accept, socket, and listen in WASI libc on top of that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants