~/talk

TCP Sockets Programming in Ruby

Talkat WindyCityRails 2016 · 2016-09-15..09-16· [ruby, networking]
slides:none on file

Explains how Ruby maps to the Berkeley socket API and demonstrates actual calls like socket bind listen connect read write close, shows using Ruby helpers TCPServer.tcp and TCPSocket and the select multiplexing pattern for many connections, warns about a microcontroller bug that requires two blank lines causing stuck connections, notes backlog defaults to 5 and often maxes at 128, and builds a minimal server that stores and returns talk entries and works end to end.

AI-written summary · about

  1. 0:00Introduction
  2. 1:39Overview
  3. 3:08Line protocol
  4. 4:38What is a socket
  5. 5:39Sockets as files
  6. 6:24Wait Timer
  7. 7:28System Calls
  8. 10:35Berkeley Socket API
  9. 11:22ClientServer Lifecycle
  10. 15:51Demo
  11. 20:05Client
  12. 21:05Socket IO
  13. 24:35Conclusion
~/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.