Name
recv
Synopsis
s
.recv(bufsize
)
Receives up to bufsize
bytes from the
socket and returns a string with the data received. Returns an empty
string when the socket is disconnected. If there is currently no
data, blocks until the socket is disconnected or 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.