Function wasmer_wasix::syscalls::wasix::sock_send::sock_send

source ·
pub fn sock_send<M: MemorySize>(
    ctx: FunctionEnvMut<'_, WasiEnv>,
    fd: Fd,
    si_data: WasmPtr<__wasi_ciovec_t<M>, M>,
    si_data_len: M::Offset,
    si_flags: SiFlags,
    ret_data_len: WasmPtr<M::Offset, M>,
) -> Result<Errno, WasiError>
Expand description

§sock_send()

Send a message on a socket. Note: This is similar to send in POSIX, though it also supports writing the data from multiple buffers in the manner of writev.

§Parameters

  • si_data - List of scatter/gather vectors to which to retrieve data
  • si_flags - Message flags.

§Return

Number of bytes transmitted.