[docs] 184.108.40.206. socketserver.TCPServer
chinaxun827 at 163.com
Mon Jan 25 10:10:08 EST 2016
importsocketserverclassMyTCPHandler(socketserver.BaseRequestHandler):""" The RequestHandler class for our server. It is instantiated once per connection to the server, and must override the handle() method to implement communication to the client. """defhandle(self):# self.request is the TCP socket connected to the clientself.data=self.request.recv(1024).strip()https://docs.python.org/3.4/library/socketserver.html
I have not found the request method in socketserver.BaseRequestHandler or socketserver.BaseRequestHandler.handle
I don't know how this example worked. Maybe this is just a "hidden" usage?
Is there a way to look up every attributes and methods of a class or a method? Please tell me if you know how to.
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the docs