Jump to ratings and reviews
Rate this book

Working with TCP Sockets

Rate this book
Do you know how your web server opens a socket, binds to an address, and accepts a connection? I did a lot of web programming before I had enough knowledge to dig in and figure this stuff out!

This book will teach you these fundamentals using Ruby. It starts with the fundamentals that are portable to any environment. Then shows you the beautiful abstractions that Ruby has layered on top.

Learning this stuff doesn't just apply to Ruby: every modern programming language has support for networking. Every language has their own way of doing things, but all modern languages support the Berkeley Sockets API. There's certainly plenty of syntactic sugar, but below the sugar you can use the same Sockets API that you would in C, Java, Python, whatever.

This is portable knowledge that will serve you for many years to come.

http://workingwithtcpsockets.com/

185 pages, ebook

First published October 1, 2012

8 people are currently reading
99 people want to read

About the author

Jesse Storimer

4 books40 followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
22 (41%)
4 stars
24 (45%)
3 stars
6 (11%)
2 stars
1 (1%)
1 star
0 (0%)
Displaying 1 - 3 of 3 reviews
Profile Image for Chris Wood.
42 reviews4 followers
May 27, 2014
This was a fantastic treatment of *nix socket programming. While viewed through a ruby lens (the author relies on the ruby socket library for building client/server examples), the book does a tremendous job introducing the reader to the fundamentals of socket programming, common gotchas, and architectural patterns for building fast servers. He brings a lot of clarity to underlying servers such as nginx, puma, eventmachine, and unicorn. I cannot recommend this highly enough for those wanting to get a deeper understanding socket programming basics.
Profile Image for Katherine.
883 reviews44 followers
September 7, 2016
Similarly to Working with Ruby Threads, I'm glad to have learned more about this topic and have a reference to go back to should I want to build a server or need to do this socket programming. The most practical part for me is better understanding the general patterns and associated tradeoffs for different Ruby web servers.
Profile Image for thirtytwobirds.
105 reviews55 followers
November 1, 2012
A good, solid overview of working with sockets.

A bit heavy on the Ruby. You'll still be able to understand the code even if you're not a Ruby programmer, but the book does spend a non-trivial amount of time talking about Ruby-specific stuff. It's still interesting though, so it's not a big deal.
Displaying 1 - 3 of 3 reviews

Can't find what you're looking for?

Get help and learn more about the design.