Interprocess Communication and Networking
The modules described in this chapter provide mechanisms for different processes to communicate.
Some modules only work for two processes that are on the same machine, e.g. signal and mmap. Other modules support networking protocols that two or more processes can use to communicate across machines.
The list of modules described in this chapter is:
socket
— Low-level networking interfacessl
— TLS/SSL wrapper for socket objectsselect
— Waiting for I/O completionselectors
– High-level I/O multiplexingasyncio
– Asynchronous I/O, event loop, coroutines and tasks- Base Event Loop
- Event loops
- Tasks and coroutines
- Transports and protocols (callback based API)
- Streams (coroutine based API)
- Subprocess
- Synchronization primitives
- Queues
- Develop with asyncio
asyncore
— Asynchronous socket handlerasynchat
— Asynchronous socket command/response handlersignal
— Set handlers for asynchronous eventsmmap
— Memory-mapped file support