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

Unable to run tcp socket in wasmtime #4978

Closed
expploitt opened this issue Sep 29, 2022 · 2 comments
Closed

Unable to run tcp socket in wasmtime #4978

expploitt opened this issue Sep 29, 2022 · 2 comments

Comments

@expploitt
Copy link

I would like to know the state of networking in wasmtime 1.0.0, because I can compile tcplistener with the target wasm32-wasi but then wasmtime throws error "funcionality not supported".

I would like to know if I have to preopend sockets or to use some specific crate in the case of having basic networking available.

Thanks!

@expploitt expploitt changed the title Unable to run tcp socker in wasmtime Unable to run tcp socket in wasmtime Sep 29, 2022
@bjorn3
Copy link
Contributor

bjorn3 commented Sep 29, 2022

#3729 added the arguments of which you need to use one to open the socket and rust-lang/rust#93158 implemented rust support and provides a code snippet you can use.

@alexcrichton
Copy link
Member

Indeed I believe this is implemented to the extent that WASI supports sockets today, if you'd like more functionality I'd recommend opening an issue on the WASI proposal to extend the sockets proposal.

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