wasm-micro-runtime/core/iwasm/libraries
Marcin Kolny f6bbeade2a
Implement wasi_addr_resolve function (#1319)
Implement wasi_addr_resolve function.
    
Also slightly modify the interface to make it more accessible for the end user:
- replace port argument with the service - so the user can actually get the port for a given service if unknown
- introduce __wasi_addr_info_t and use it as a buffer for addresses, instead of generic buffer
- introduce __wasi_addr_info_hints_t so user can enable filtering on the syscall level (and therefore use smaller buffers for addresses)
- add max_size parameter for the API as an output - in case the number of addresses is bigger than the buffer size, user can repeat the call with bigger buffer

This change is very minimalistic, and it doesn't include the followings:
 1. implementation of getaddrinfo in the lib-socket
 2. sample application
Which are to be added in the following change #1336
2022-07-28 12:25:05 +08:00
..
debug-engine debug_engine: Fix a few typos (#1261) 2022-06-30 15:45:46 +08:00
lib-pthread Fix pthread_getspecific return value (#999) 2022-02-05 22:45:59 +08:00
lib-socket Implement wasi_addr_resolve function (#1319) 2022-07-28 12:25:05 +08:00
libc-builtin Support va_args in libc-builtin (#1117) 2022-04-24 10:39:18 +08:00
libc-emcc Apply clang-format for core/iwasm compilation and libraries (#784) 2021-10-13 15:13:00 +08:00
libc-uvwasi Fix libc-wasi/uvwasi poll/environ_get issues (#1300) 2022-07-20 20:02:26 +08:00
libc-wasi Implement wasi_addr_resolve function (#1319) 2022-07-28 12:25:05 +08:00
thread-mgr wasm_cluster_spread_custom_data: Fix a crash when called before exec (#1257) 2022-06-29 13:21:03 +08:00