Function wasmer_wasix::syscalls::wasix::sock_bind::sock_bind

source ·
pub fn sock_bind<M: MemorySize>(
    ctx: FunctionEnvMut<'_, WasiEnv>,
    sock: Fd,
    addr: WasmPtr<__wasi_addr_port_t, M>,
) -> Result<Errno, WasiError>
Expand description

§sock_bind()

Bind a socket Note: This is similar to bind in POSIX using PF_INET

§Parameters

  • fd - File descriptor of the socket to be bind
  • addr - Address to bind the socket to