PyDocs

Nav

Networking and Interprocess Communication

CMSG_LEN

socket

function · Added in 3.3Unixnot WASI
  • CMSG_LEN(length)
CMSG_LEN(length) -> control message length

Return the total length, without trailing padding, of an ancillary
data item with associated data of the given length.  This value can
often be used as the buffer size for recvmsg() to receive a single
item of ancillary data, but RFC 3542 requires portable applications to
use CMSG_SPACE() and thus include space for padding, even when the
item will be the last in the buffer.  Raises OverflowError if length
is outside the permissible range of values.
0 Examples
No examples for socket/CMSG_LEN.
See Also
No see-alsos for socket/CMSG_LEN
0 Notes
No notes for CMSG_LEN