Receives a message on a socket.
fn recvmsg(sockfd: i32, msg: &mut msghdr, flags: i32) -> i64
| Name | Description |
|---|---|
| sockfd | The socket on which to receive. |
| msg | |
| flags | Flags used while receiving. |
Returns the number of bytes received or an error value.
Unless lrs was compiled with the no-auto-cloexec flag, this function automatically adds the MSG_CMSG_CLOEXEC flag.