Re: [Tutor] should we use multithreading for multiple clients in socket class

2012-04-12 Thread Alan Gauld
On 12/04/12 12:38, Surya K wrote: I am learning networking and just wrote a primitive client server program.. ... So, I tried to run another client (same code but from different file) but found that its now working. I assume that should be *not working*? A more detailed description of what yo

[Tutor] should we use multithreading for multiple clients in socket class

2012-04-12 Thread Surya K
I am learning networking and just wrote a primitive client server program.. server: from time import ctimefrom socket import * HOST = ""PORT = 21567BUFSIZ = 1024ADDR = (HOST, PORT) tcpSerSoc = socket(AF_INET, SOCK_STREAM)tcpSerSoc.bind(ADDR)tcpSerSoc.listen(5) while True:print "waiting for con