Name
recvfrom
Synopsis
s
.recvfrom(bufsize
)
Receives up to bufsize
bytes from the
socket and returns a tuple
(
data
,(
ipaddr
,port
))
,
where data
is a string with the data
received, and ipaddr
and
port
are the IP address and port number of
the sender. Useful with datagram-oriented sockets, which can receive
data from different senders. If there is currently no data in the
socket, blocks until some data arrives.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.