Support different connection family types: TCP socket, Unix domain socket and Windows named pipes
Used multiprocessing.connection.Listener supports different connection family types:
-
AF_UNIXfor a Unix domain socket. Currently supported by default -
AF_INETfor a TCP socket -
AF_PIPEfor a Windows named pipe
Proposition:
- Add an option to select different connection family type
- By default, it should automatically use
AF_UNIXon Linux/macOS andAF_PIPEon Windows
Use cases:
- Windows support (
AF_PIPEfor a Windows named pipe) - Remote execution over network (
AF_INETfor a TCP socket)