~/talk

What I learned from sockets

Talkat Meeting C++ 2023 · 2023-11-12..11-14· [networking]
links:none on file
slides:none on file

Asserts that the socket select pattern generalizes: wait once for events, then run straight‑line handlers; demonstrates using POSIX primitives like epoll/kqueue and poll, adding timerfd for timeouts, and applying the happy eyeballs algorithm to race multiple connects. Builds a C++ “select object” and in‑process selectable pipe handles, shows cooperative subscribe/notify mechanics, supports cancellation via an extra socket, and compiles and runs the examples.

AI-written summary · about

  1. 0:00Introduction
  2. 1:06Select and its power
  3. 3:35Sockets and file descriptors
  4. 10:59Blocking vs non-blocking I/O
  5. 12:03Select for concurrent waiting
  6. 14:55Select limitations and alternatives
  7. 17:00Poll vs Select
  8. 18:03EPOLL for efficient events
  9. 20:30Async code with EPOLL
  10. 20:51Happy Eyeballs algorithm
  11. 23:59Happy Eyeballs with EPOLL
  12. 26:31Cancellation and timeouts
  13. 28:59Cancelling with Unix sockets
  14. 35:23Async patterns in C++
  15. 37:07C++ Select-like mechanism
  16. 40:00User-space pipe with handles
  17. 43:30Non-blocking pipe operations
  18. 45:18Selectable handles
  19. 49:57User-space Select object
  20. 51:42Lazy subscription
  21. 54:11Select internals and fairness
  22. 56:01Demo: Selectable pipe
  23. 57:48Sender-receiver proposal
  24. 59:16Q&A
~/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.