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