Function wasmer_wasix::syscalls::wasix::sock_accept::sock_accept

source ·
pub fn sock_accept<M: MemorySize>(
    ctx: FunctionEnvMut<'_, WasiEnv>,
    sock: Fd,
    fd_flags: Fdflags,
    ro_fd: WasmPtr<Fd, M>,
) -> Result<Errno, WasiError>
Expand description

§sock_accept()

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.

§Return

New socket connection