Skip to main content

recvfrom

Function recvfrom 

Source
pub fn recvfrom<T>(
    sockfd: i32,
    buf: &mut [u8],
) -> Result<(usize, Option<T>), Errno>
where T: SockaddrLike,
Expand description

Receive data from a connectionless or connection-oriented socket. Returns the number of bytes read and, for connectionless sockets, the socket address of the sender.

Further reading