[][src]Function wasi::sock_send

pub unsafe fn sock_send(
    fd: Fd,
    si_data: CiovecArray<'_>,
    si_flags: Siflags
) -> Result<Size>

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

  • so_datalen - Number of bytes transmitted.