Function lrs::syscall::recvmsg

Receives a message on a socket.

Syntax

fn recvmsg(sockfd: i32, msg: &mut msghdr, flags: i32) -> i64

Arguments

NameDescription
sockfd

The socket on which to receive.

msg
flags

Flags used while receiving.

Return value

Returns the number of bytes received or an error value.

Remarks

Unless lrs was compiled with the no-auto-cloexec flag, this function automatically adds the MSG_CMSG_CLOEXEC flag.

See also