March 2003
Intermediate to advanced
656 pages
39h 30m
English
handle
h.handle( )Your subclass overrides this method, called by the server, on a new
instance of your subclass for each new incoming request. Typically,
for a TCP server, your implementation of handle
conducts a conversation with the client on socket
h
.request to service
the request. For a UDP server, your implementation of
handle examines the datagram in
h
.request[0] and sends
a reply string with
h
.request[1].sendto.