~/talk

Raw TCP/IP socket communication

Talkat DotNext 2020 Piter · 2020-06-15..06-18· [networking]
links:none on file
slides:none on file

Crash course in building reliable always-on TCP/IP device protocols: TCP gives a byte stream not packets, writes complete when bytes hit the local OS, reads can be partial and a socket’s “connected” flag is meaningless. Design around three pillars: length-prefix framing (or delimiters with escaping), explicit periodic ping on both sides for half-open detection (stack keep-alives are unreliable and often 2h), and always be reading while using async I/O. Write a formal spec, version it, log every byte, test with Wireshark/Clumsy.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 4:46Why use raw TCP/IP sockets
  3. 11:11TCP/IP semantics and misconceptions
  4. 22:02Designing application protocols
  5. 33:22Message framing and keep-alives
  6. 49:52HTTP protocol evolution lesson
  7. 55:35Key implementation tips
  8. 1:01:30Q&A and closing discussion
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.