Contemporary C++ in Action
summary
Live-coded tiny client/server that decodes video files from a directory and streams frames over TCP using libav (ffmpeg) as a modularized library, SDL2 as a module for presentation, and coroutines/generators to produce frames. Networking composes ASIO-style async ops into awaitable coroutines, returns std::expected for errors, and uses ASIO executors plus a stop_source shutdown to cancel cleanly. The build actually compiles and runs after hooking the work queue to the main thread, logs each frame, and handles timeouts and reconnects robustly.
AI-written summary · about
chapters (10)
- 0:00Start
- 5:59Specification
- 10:48Implementation
- 13:16Pipeline To Decode the Individual Video Frames
- 18:39Make Video Frame
- 24:34Co-Routine Operator
- 26:48Basic Networking Operations
- 42:51Receive Code
- 46:05Ico Io Context
- 55:48Resources
related talks
01h 03mContemporary C++ in action
01h 09mCombining Modern C++ and Lua
01h 16mApplied C++20 Coroutines
01h 01mGet rich quick! Using Boost.Beast WebSockets and Networking TS
01h 03mA C++ journey from old to modern - Modernising ObjectiveFrame
01h 14mHow to Use C++20 Coroutines for Networking
01h 27mPowerful Data Processing Pipelines with C++20 Coroutines
01h 11mAsynchronous C++
