Name

handle

Synopsis

                        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.

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.