Commit Graph

3 Commits

Author SHA1 Message Date
Huang Qi
412631ac13
fix: correct typos and improve comments across multiple files by codespell ()
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2025-03-07 08:21:54 +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
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