Function wasmer_wasix::syscalls::wasix::sock_send_to::sock_send_to
source · pub fn sock_send_to<M: MemorySize>(
ctx: FunctionEnvMut<'_, WasiEnv>,
sock: Fd,
si_data: WasmPtr<__wasi_ciovec_t<M>, M>,
si_data_len: M::Offset,
si_flags: SiFlags,
addr: WasmPtr<__wasi_addr_port_t, M>,
ret_data_len: WasmPtr<M::Offset, M>,
) -> Result<Errno, WasiError>
Expand description
§sock_send_to()
Send a message on a socket to a specific address.
Note: This is similar to sendto
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 datasi_flags
- Message flags.addr
- Address of the socket to send message to
§Return
Number of bytes transmitted.