5. windows.pipe – Inter-Process Communication¶
windows.pipe is wrapper around _multiprocessing.PipeConnection simplifiying its use.
The main improvement are:
- send/recv object from a pipe name in one line
- Context manager around pipe connection
Note
see sample windows.pipe
5.1. Helper functions¶
-
windows.pipe.create(addr)¶ Create a namedpipe pipe
addrReturns type: PipeConnection
-
windows.pipe.connect(addr)¶ Connect to the named pipe
addrReturns type: PipeConnection
5.2. PipeConnection¶
-
class
windows.pipe.PipeConnection(connection, name=None, server=False)[source]¶ A wrapper arround
_multiprocessing.PipeConnectionable to work as a ContextManager-
classmethod
connect(addr)[source]¶ Connect to the named pipe
addrReturns type: PipeConnection
-
classmethod
create(addr)[source]¶ Create a namedpipe pipe
addrReturns type: PipeConnection
-
classmethod
from_handle(phandle, *args, **kwargs)[source]¶ Create a
PipeConnectionfrom pipe handle phandle
-
classmethod