[Twisted-Python] pb over windows named pipes?

glyph at divmod.com glyph at divmod.com
Tue Jun 20 14:03:22 EDT 2006



On Tue, 20 Jun 2006 14:32:10 +0200, Micky Latowicki <ml.flex at gmail.com> wrote:

>We are interested in running pb using windows named pipes as transport, to
>enjoy the OS-level access control they offer.
>
>We seek advice regarding:
>
>1. what must be written to make this happen

A reactor extension like listenNamedPipe/connectNamedPipe probably.

Likely this would be implemented similarly to listenUNIX.

>2. how hard would it be

To do it properly?  You can't select() on named pipes in Windows, so you'd have to work with IOCP, which I unfortunately understand only at a high level.  Hopefully someone who has worked with iocpreactor can answer your questions (hint, hint).

>3. what existing code can we learn from

There is code in twisted.internet._dumbwin32proc which does timed polling of asynchronous anonymous pipes for portable subprocess support, which may be of some use to you.

Please consider contributing the code for this if you implement it :).




More information about the Twisted-Python mailing list