WebAssembly/WASI

How to use sock in WASI?

bnmcxlzd opened this issue · 1 comments

How can I write a C program that uses a sock and compile it into Wasm binaries?
Are there any examples?

Checkout the sockets test in wasmtime for a rust version of this: crates/test-programs/src/sockets.rs.

For C, you would use the wasi-sdk.