March 2003
Intermediate to advanced
656 pages
39h 30m
English
recvfrom
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.
Read now
Unlock full access