WebAssembly/wasi-libc

unable to compile simple httpclient wasm module

Closed this issue · 3 comments

I am trying to create simple httpclient wasm module to run on wasmtime
When compiling a simple httpclient using wasi-sysroot, I see that
netdb.h is not found and socket apis 'listen' , 'bind' , 'connect' , 'accept' are missing?
Are they supported?

As far as I can tell, networking is not standardised nor supported just yet. See WebAssembly/WASI#4, bytecodealliance/wasmtime#70, and bytecodealliance/wasmtime#69 for some discussions.

@sunfishcode, could you comment please?

Yes, that's right. There is currently no way to create network connections, so there's no listen, bind, connect, or accept. We'd like to add them, and there is some discussion in the issues @kubkon linked to.

Thanks for the details