wasmer_wasix::syscalls::wasix::sock_acceptFunction sock_accept_v2
Source pub fn sock_accept_v2<M: MemorySize>(
ctx: FunctionEnvMut<'_, WasiEnv>,
sock: Fd,
fd_flags: Fdflags,
ro_fd: WasmPtr<Fd, M>,
ro_addr: WasmPtr<__wasi_addr_port_t, M>,
) -> Result<Errno, WasiError>
Expand description
§sock_accept_v2()
Accept a new incoming connection.
Note: This is similar to accept
in POSIX.
§Parameters
fd
- The listening socket.
flags
- The desired values of the file descriptor flags.
ro_addr
- Returns the address and port of the client
§Return
New socket connection