Name
request
Synopsis
For a TCP server, the
h
.request
attribute is
the socket connected to the client. For a UDP server, the
h
.request
attribute is
a pair
(
data
,sock
)
,
where data
is the string of data the
client sent as a request (up to 8192 bytes) and
sock
is the server socket. Your
handle
method typically calls method
sendto
on sock
to send
a reply to the client.
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.