Commit Graph

5 Commits

Author SHA1 Message Date
Daniel Mangum
157c289d07
Fix typos of CIDR in docs and help text ()
Fixes typos of CIDR in socket documentation and libc WASI help text.

Signed-off-by: Daniel Mangum <georgedanielmangum@gmail.com>
2023-12-04 11:38:54 +08:00
Wenyong Huang
7701b379e4
Update documents ()
Fix linkage error, update build wamr document, update socket and sample documents.
2023-04-03 15:54:44 +08:00
Wenyong Huang
78b5c5b484
Merge dev/socket into main ()
Implement more socket APIs, refer to  and below PRs:
- Implement wasi_addr_resolve function ()
- Fix socket-api byte order issue when host/network order are the same ()
- Enhance sock_addr_local syscall ()
- Implement sock_addr_remote syscall ()
- Add support for IPv6 in WAMR ()
- Implement ns lookup allowlist ()
- Implement sock_send_to and sock_recv_from system calls ()
- Added http downloader and multicast socket options ()
- Fix `bind()` calls to receive the correct size of `sockaddr` structure ()
- Assert on correct parameters ()
- Copy only received bytes from socket recv buffer into the app buffer ()

Co-authored-by: Marcin Kolny <mkolny@amazon.com>
Co-authored-by: Marcin Kolny <marcin.kolny@gmail.com>
Co-authored-by: Callum Macmillan <callumimacmillan@gmail.com>
2022-09-22 21:46:14 +08:00
Jämes Ménétrey
106974d915
Implement Berkeley Socket API for Intel SGX ()
Implement Berkeley Socket API for Intel SGX
- bring Berkeley socket API in Intel SGX enclaves,
- adapt the documentation of the socket API to mention Intel SGX enclaves,
- adapt _iwasm_ in the mini-product _linux-sgx_ to support the same option as the one for _linux_,
- tested on the socket sample as provided by WAMR (the TCP client/server).
2022-03-25 17:46:29 +08:00
Wenyong Huang
9c87a1ee17
Implement part of Berkeley Socket API for libc-wasi ()
Refer to [Networking API design](https://github.com/WebAssembly/WASI/issues/370)
and [feat(socket): berkeley socket API v2](https://github.com/WebAssembly/WASI/pull/459):

- Support the socket API of synchronous mode, including `socket/bind/listen/accept/send/recv/close/shutdown`,
    the asynchronous mode isn't supported yet.
- Support adding `--addr-pool=<pool1,pool2,..>` argument for command line to identify the valid ip address range
- Add socket-api sample and update the document
2022-03-10 15:13:38 +08:00