I noticed there is support for UNIX sockets in asyncio, but there is no documented support for named pipes on Windows. I dug a bit and noticed the required functions are all implemented in asyncio, the only thing that's missing is a pair of functions akin to asyncio.start_unix_server()
andasyncio.open_unix_connection()
and some documentation.
I went on and implemented a simple script that showcases what's available (see this gist for a runnable example that uses UNIX sockets or named pipes depending on what the system supports).
I'm willing to put some time into the patch if you're willing to accept it. Any chance you're interested in this?
Cheers,
André
Hi,I support your idea.We have two use case at GNS3 where we could take advantage of named pipe.The communication between our code and VirtualBox or VMware because they provide API over named pipe, actually we have a ugly workaround to do that.The communication between two process made by us, actually we use HTTP over the network with our own security, but if possible we prefer to use the named pipe with OS security.Cheers,Julien