Function lrs::syscall::sendto

Sends data to an address.

Syntax

fn sendto(sockfd: i32, buf: &[u8], flags: i32, dst_addr: Option<&[u8]>) -> i64

Arguments

NameDescription
sockfd

The socket over which to send.

buf

The buffer to send.

flags

Flags used while sending.

dst_addr

An optional destination of the message.

Return value

Returns the number of bytes sent or an error value.

See also