~/talk

The Networking TS in Practice: Testable, Composable Asynchronous I/O in C++

Talkat CppCon 2018 · 2018-09-23..09-28· [c-and-cpp, networking]
name:R. Leahy
links:none on file
slides:none on file

Explains how the Networking TS (Boost.Asio) yields testable, composable async I/O by building a composed operation async_wait_then_write that chains timer wait and guaranteed async_write, using a hand-rolled MockAsyncWriteStream plus an io_context and explicit polling so unit tests run deterministically. Covers executor semantics (dispatch / defer / post), associated_executor and strands to enforce per-connection single-threaded safety, and async_result/use_future to return futures; demonstrates a failing ordering bug that then consistently passes once fixed.

AI-written summary · about

  1. 0:00Introduction to Networking TS
  2. 1:26Problems with current networking code
  3. 3:37Proactor model explained
  4. 6:27Writing async heartbeat loop
  5. 9:39Composed async operations
  6. 15:18Executors and execution contexts
  7. 17:46Making code testable and reusable
  8. 22:47Thread safety and parallelism
  9. 29:05Customizing completion mechanisms
  10. 44:48Key takeaways and best practices
  11. 51:55Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.