Named pipes in threads

Jive someone at microsoft.com
Sun Dec 12 18:34:45 CET 2004


"Philippe C. Martin" <philippecmartin at sbcglobal.net> wrote in message
news:mailman.7551.1102870873.5135.python-list at python.org...
> HI,
>
> I currently have a "working" script that uses sockets to handle threads
> communications - the problem is that it gives me obvious problems in
handling
> free ports (launching the script more than once ....).
>
> Is thread named pipes communication allowed ?
>
> Regards,
>

Replace the sockets with a queue of strings.
http://docs.python.org/lib/module-Queue.html

Write your Send and Recv functions in terms of Queue.get() and Queue.put();
> Philippe





More information about the Python-list mailing list