### Navigation

- index
- modules |
- next |
- previous |
- Python »
- 3.3.2 Documentation »
- The Python Standard Library »

# 18. 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 used to communicate across machines.

The list of modules described in this chapter is:

- 18.1. `socket` — Low-level networking interface
  - 18.1.1. Socket families
  - 18.1.2. Module contents
  - 18.1.3. Socket Objects
  - 18.1.4. Notes on socket timeouts
    - 18.1.4.1. Timeouts and the `connect` method
    - 18.1.4.2. Timeouts and the `accept` method
  - 18.1.5. Example
- 18.2. `ssl` — TLS/SSL wrapper for socket objects
  - 18.2.1. Functions, Constants, and Exceptions
    - 18.2.1.1. Socket creation
    - 18.2.1.2. Random generation
    - 18.2.1.3. Certificate handling
    - 18.2.1.4. Constants
  - 18.2.2. SSL Sockets
  - 18.2.3. SSL Contexts
  - 18.2.4. Certificates
    - 18.2.4.1. Certificate chains
    - 18.2.4.2. CA certificates
    - 18.2.4.3. Combined key and certificate
    - 18.2.4.4. Self-signed certificates
  - 18.2.5. Examples
    - 18.2.5.1. Testing for SSL support
    - 18.2.5.2. Client-side operation
    - 18.2.5.3. Server-side operation
  - 18.2.6. Notes on non-blocking sockets
  - 18.2.7. Security considerations
    - 18.2.7.1. Verifying certificates
    - 18.2.7.2. Protocol versions
    - 18.2.7.3. Cipher selection
- 18.3. `asyncore` — Asynchronous socket handler
  - 18.3.1. asyncore Example basic HTTP client
  - 18.3.2. asyncore Example basic echo server
- 18.4. `asynchat` — Asynchronous socket command/response handler
  - 18.4.1. asynchat - Auxiliary Classes
  - 18.4.2. asynchat Example
- 18.5. `signal` — Set handlers for asynchronous events
  - 18.5.1. General rules
    - 18.5.1.1. Execution of Python signal handlers
    - 18.5.1.2. Signals and threads
  - 18.5.2. Module contents
  - 18.5.3. Example
- 18.6. `mmap` — Memory-mapped file support

### Navigation

- index
- modules |
- next |
- previous |
- Python »
- 3.3.2 Documentation »
- The Python Standard Library »