Function sock_send_file
Source pub fn sock_send_file<M: MemorySize>(
ctx: FunctionEnvMut<'_, WasiEnv>,
sock: Fd,
in_fd: Fd,
offset: Filesize,
count: Filesize,
ret_sent: WasmPtr<Filesize, M>,
) -> Result<Errno, WasiError>
Expand description
§sock_send_file()
Sends the entire contents of a file down a socket
§Parameters
in_fd - Open file that has the data to be transmitted
offset - Offset into the file to start reading at
count - Number of bytes to be sent
§Return
Number of bytes transmitted.