Connection acception with confirmation
Rob Williscroft
rtw at freenet.co.uk
Tue May 29 15:16:05 EDT 2007
no`name` wrote in news:1180462910.584445.256400 at j4g2000prf.googlegroups.com
in comp.lang.python:
> maybe someone have some ideas how to block first stdin in main
> function and get stdin from the thread when here is a new connection?
>
No, but you could instead use a Queue:
http://docs.python.org/lib/module-Queue.html
so that your main thread reads stdin and then uses an instance
of Queue to post the 'y's and 'n's it recives to your server
thread.
Rob.
--
http://www.victim-prime.dsl.pipex.com/
More information about the Python-list
mailing list