Stream: git-wasmtime

Topic: wasmtime / Issue #2732 Does wasmtime support socket?


view this post on Zulip Wasmtime GitHub notifications bot (Mar 16 2021 at 19:35):

ZW007 opened Issue #2732:

I have a socket cpp application, i want to port it to wasm, so i did:
wasm32-wasi-clang++ server_c1.cpp -o server_c1Wasi.wasm
but it says

server_c1.cpp:28:21: error: use of undeclared identifier 'socket'
int serv_sock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);

I wonder if there is any workaround? Thank you!

view this post on Zulip Wasmtime GitHub notifications bot (Mar 16 2021 at 19:57):

bjorn3 commented on Issue #2732:

No, wasi doesn't have any networking capabilities yet. cc https://github.com/WebAssembly/WASI/issues/370 and https://github.com/WebAssembly/WASI/pull/312


Last updated: Oct 23 2024 at 20:03 UTC