Practical Patterns with the Networking TS
summary
Networking TS is stable, implemented on GitHub and built on Boost.Asio, and the talk walks through concrete patterns and gotchas: synchronous stream examples use io_context with work_guard to keep threads alive, asynchronous code chains initiators and completion handlers, and strand guarantees ordered single threaded execution. Demonstrations include a self owning chat handler using enable_shared_from_this, a common temporary buffer bug that breaks async sends, why read_until can overread, and why using read_some plus explicit state machines is the reliable solution.
AI-written summary · about
chapters (11)
- 0:00Introduction and context
- 2:11Networking TS overview
- 9:28Synchronous vs asynchronous I/O
- 15:32Sockets and resolvers
- 27:12Executors and async setup
- 37:14Completion handlers and callbacks
- 42:16Chat server design
- 47:26State machines and abstractions
- 53:55Futures, coroutines and streams
- 54:18Key takeaways and conclusion
- 54:59Q&A session
related talks
59mThe Networking TS in Practice: Patterns for Real World Problems
58mThe Networking TS in Practice: Testable, Composable Asynchronous I/O in C++
58mThe Networking TS from Scratch: I/O Objects
01h 01mStructured Networking
57mStructured Networking in C++
01h 01mAsynchronous IO with Boost.Asio
22mEvent driven networking for Swift
01h 14mHow to Use C++20 Coroutines for Networking
