~/talk

Asynchronous IO Using Boost.Asio

Talkat Meeting C++ 2016 · 2016-11-18..11-19· [rust]
links:none on file
slides:none on file

Explains concrete Boost.Asio patterns: use of timers to show one-thread vs two-thread behavior, strand serializes handlers to avoid races, and shared_from_this lifetime pattern to keep connection objects alive until callbacks finish. Shows buffer and scatter/gather APIs, streambuf for framed reads, async_accept handing sockets to per-connection handlers, and using post as a threadpool. Demonstrates combining Asio with Spirit/Karma for parsing/serialization and recommends canceling outstanding IO to let dead clients be destroyed.

AI-written summary · about

  1. 0:00Start
  2. 15:59create two deadline timers
  3. 32:07create an azo generic server
  4. 35:14add your own error handling
  5. 45:08putting weak pointers on the i / o cue
~/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.