Can some one suggest a good example for socket server which can handle multiple connections with threading from python. (Live connection (like server-client ping-pong) that will handle from threads)
asked Aug 19, 2016 at 12:07
chinthakaS
1541 gold badge2 silver badges12 bronze badges
-
stackoverflow.com/questions/10810249/… looks relevantdoctorlove– doctorlove2016年08月19日 12:14:32 +00:00Commented Aug 19, 2016 at 12:14
-
Need a live connection.That will handle from threads.chinthakaS– chinthakaS2016年08月19日 12:20:03 +00:00Commented Aug 19, 2016 at 12:20
1 Answer 1
Using the SocketServer module you can create a server that handles multiple connections. Using Asynchronous mixins you can start new threads for each connection. There is a very good example in the Python documentation above.
answered Aug 19, 2016 at 13:24
Dartmouth
1,0892 gold badges17 silver badges23 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
lang-py