Receive a message on a socket.
Parameters |
socket:Socket | The socket to receive the message on. |
maxSize:int | The maximum number of bytes to receive from the socket using the datagram or stream mechanism. The default maximum is 8192. |
cmsgSize:int | The maximum number of bytes to receive from the socket outside of the normal datagram or stream mechanism. The default maximum is 4096. |
flags:int | Flags to affect how the message is sent. See the MSG_ constants in the sendmsg(2) manual page. By default no flags are set. |
Returns |
ReceivedMessage | A named 3-tuple of the bytes received using the datagram/stream mechanism, a list of tuple s giving ancillary received data, and flags as an int describing the data received. |