wasix::lib_generated64

Function sock_send

Source
pub unsafe fn sock_send(
    fd: u32,
    si_data: &[Ciovec],
    si_flags: u16,
) -> Result<usize, Errno>
Expand description

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.