Network programming for automation developers
summary
Practical checklist for automation-focused network code: use Python sockets but handle them at the lower level (the device manager Python client talks to an Android Java “su client” and a C++ agent on Firefox OS), set explicit timeouts via settimeout or select so calls fail fast, treat receive returning None as closed, catch socket.error and socket.timeout separately, classify failures as transient (retry) or permanent (report), prefer TCP and length‑prefixed messages over prompt parsing for binary transfers; command‑client abstraction already works.
AI-written summary · about
chapters (20)
- 0:00Introduction
- 3:03Why this talk
- 4:18What this talk is about
- 6:20Timeouts
- 8:35Connection closed
- 10:10Errors
- 10:40Return codes
- 11:13Exception
- 11:53Transient and Permanent
- 12:37Error Layer Cake
- 12:57Data Errors
- 14:05Device Errors
- 14:50Effective Protocols
- 15:20Simple Commands
- 16:05Prompts
- 16:45Modes
- 17:05Protocol for a machine
- 17:35Command client
- 18:05Summary
- 18:25Pitch
