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 saysserver_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!
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: Nov 22 2024 at 17:03 UTC