Newbie question: how to keep a socket listening?

pwilkins pwilkins at noaddress.org
Fri Jun 24 15:19:02 EDT 2005


On Fri, 24 Jun 2005 13:59:19 -0400, pwilkins wrote:

> 			if data == 'q':
> 			 ##disconnect client but keep waiting for connections
> 				...
> 				client.close()

Sorry - made a mistake in my posting...
the above should have been:

if data == 'q':
 ##disconnect client but keep waiting for connections
 ...
 client.close()
 break # return to the wait for connections while loop

Again thanks...




More information about the Python-list mailing list