6. 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
6.1. Helper functions¶
- windows.pipe.create(addr, security_descriptor=None)¶
 Create a namedpipe pipe
addr- Returns type:
 
- windows.pipe.connect(addr)¶
 Connect to the named pipe
addr- Returns type:
 
6.2. PipeConnection¶
- class windows.pipe.PipeConnection(connection, name=None, server=False)[source]¶
 A wrapper arround
_multiprocessing.PipeConnectionable to work as a ContextManager- classmethod create(addr, security_descriptor=None)[source]¶
 Create a namedpipe pipe
addr- Returns type:
 
- classmethod from_handle(phandle, *args, **kwargs)[source]¶
 Create a
PipeConnectionfrom pipe handle phandle