Reputation: 437
First I tried the SocketServer class. Then I got to know that SocketServer is available in Python2. For Python3 you need to make it lower case such as socketserver. I am trying to implement a Socket server which can respond to multiple threads and doesnt block the call.
Following is the code for Server
class ForkingServer(socketserver.ForkingMixIn, socketserver.TCPServer):
pass
But it gives the above mentioned error. Does anyone have any clue?
Upvotes: 4
Views: 4134
Reputation: 23316
Oh, I just realized from the screenshot that you're on Windows. The ForkingMixIn
class is not available on Windows because there is no fork()
on Windows. This is also mentioned in the docs.
Upvotes: 8