Sends data to an address.
fn sendto(sockfd: i32, buf: &[u8], flags: i32, dst_addr: Option<&[u8]>) -> i64
| Name | Description |
|---|---|
| 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. |
Returns the number of bytes sent or an error value.