Structured Networking in C++
summary
Demonstrates a concrete implementation of the p2300 senders/receivers model to make networking structured: coroutines build async Echo server tasks, connect returns a nonmovable operation_state and start runs it, and cancellation is omitted for the demo. Uses a simple IO context with epoll/poll style readiness, one heap job per client, and async accept/read/write adapters. The result compiles and runs: a fully asynchronous echo server that fits the core logic on a single page.
AI-written summary · about
chapters (15)
- 0:00Structured networking intro
- 1:30Motivation for C++ networking
- 2:32Sender-receiver model core
- 7:49Sequential to async echo
- 12:02Non-blocking accept ops
- 18:02Async accept with poll
- 29:09Async accept context
- 32:19Connect sender to receiver
- 39:04Async read/write ops
- 44:03Final async echo server
- 46:16Q&A: coding style
- 49:07Q&A: connect/start/types
- 51:36Q&A: connect/start
- 53:47Q&A: tag_invoke/cancel
- 55:55Closing remarks
related talks
01h 01mStructured Networking
01h 01mPractical Patterns with the Networking TS
59mThe Networking TS in Practice: Patterns for Real World Problems
01h 21mTutorial: Developing High-performance Networking Applications
58mThe Networking TS from Scratch: I/O Objects
01h 04mNaked coroutines live (with networking)
01h 21mCreating a Sender/Receiver HTTP Server for Asynchronous Operations in C++
22mEvent driven networking for Swift
