Module msg

Source
Expand description

recvmsg, sendmsg, and related functions.

Modules§

messages ðŸ”’

Structs§

AncillaryDrain
An iterator that drains messages from a RecvAncillaryBuffer.
AncillaryIter
An iterator over data in an ancillary buffer.
MMsgHdr
An ABI-compatible wrapper for mmsghdr, for sending multiple messages with sendmmsg.
RecvAncillaryBuffer
Buffer for receiving ancillary messages with recvmsg.
RecvMsg
The result of a successful recvmsg call.
SendAncillaryBuffer
Buffer for sending ancillary messages with sendmsg and sendmsg_addr.

Enums§

RecvAncillaryMessage
Ancillary message for recvmsg.
SendAncillaryMessage
Ancillary message for sendmsg and sendmsg_addr.

Functions§

align_for_cmsghdr ðŸ”’
Return a slice of buffer starting at the first cmsghdr alignment boundary.
recvmsg
recvmsg(msghdr)—Receives a message from a socket.
sendmmsg
sendmmsg(msghdr)—Sends multiple messages on a socket.
sendmsg
sendmsg(msghdr)—Sends a message on a socket.
sendmsg_addr
sendmsg(msghdr)—Sends a message on a socket to a specific address.