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 interface- Socket families
- Module contents
- Socket Objects
- Notes on socket timeouts
- Example
ssl
--- TLS/SSL wrapper for socket objects- Functions, Constants, and Exceptions
- SSL Sockets
- SSL Contexts
- Certificates
- Examples
- Notes on non-blocking sockets
- Memory BIO Support
- SSL session
- Security considerations
select
--- 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)
- Transports
- Protocols
- Protocol examples
- Streams (coroutine based API)
- Subprocess
- Synchronization primitives
- Locks
- Semaphores
- Queues
- Queue
- PriorityQueue
- LifoQueue
- Develop with asyncio
asyncore
--- Asynchronous socket handlerasynchat
--- Asynchronous socket command/response handlersignal
--- Set handlers for asynchronous eventsmmap
--- Memory-mapped file support