TCP Sockets Programming in Ruby
summary
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
chapters (13)
- 0:00Introduction
- 1:39Overview
- 3:08Line protocol
- 4:38What is a socket
- 5:39Sockets as files
- 6:24Wait Timer
- 7:28System Calls
- 10:35Berkeley Socket API
- 11:22ClientServer Lifecycle
- 15:51Demo
- 20:05Client
- 21:05Socket IO
- 24:35Conclusion








