ID EN
Socket

recvfrom

Python 3.11

Receive data from the socket. The return value is a pair (bytes, address) where bytes is a bytes object representing the data received and address is the address of the socket sending the data. See the Unix manual page recv(2) for the meaning of the optional argument flags; it defaults to zero. (The format of address depends on the address family — see above.)

Syntax

PYTHON
socket.recvfrom(bufsize[, flags])

See Also

InterruptedError getnameinfo()