The Networking TS in Practice: Patterns for Real World Problems
summary
Examines concrete recipes using Boost.Asio and the Networking TS to build composed asynchronous operations: implements an async_wait_then_write and a correct async_write_with_timeout using a shared-state counter, allocator from the completion token, and a sticky-cancel wrapper that forces failed initiations. Shows how to avoid races with strands or by round-robin dispatching sockets across single-threaded io_contexts and builds a reusable never-succeeding accept loop that runs and tests correctly on GitHub.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 2:00The Networking TS
- 12:03Shared State
- 21:33Cancel
- 26:02AsyncWrite
- 29:08Parallel Composition
- 36:02Implementing Logic
- 39:27Conclusion
- 43:53What to Leave with
- 45:52Why Complexity
- 48:29Universal asynchronous model
- 51:42TLS support
- 53:02Stop accepting
- 55:15Execution context
related talks
01h 01mPractical Patterns with the Networking TS
58mThe Networking TS in Practice: Testable, Composable Asynchronous I/O in C++
58mThe Networking TS from Scratch: I/O Objects
04mNetworking TS w/Algorithms
01h 04mNaked coroutines live (with networking)
57mStructured Networking in C++
01h 01mAsynchronous IO with Boost.Asio
01h 01mStructured Networking
