ID EN
Socket

CMSG_SPACE

Python 3.11

Return the buffer size needed for recvmsg() to receive an ancillary data item with associated data of the given length, along with any trailing padding. The buffer space needed to receive multiple items is the sum of the CMSG_SPACE() values for their associated data lengths. Raises OverflowError if length is outside the permissible range of values.

Syntax

PYTHON
socket.CMSG_SPACE(length)

See Also

recvmsg() CMSG_SPACE() OverflowError Availability