© Carleton DiLeo, Peter Cooper 2021
C. DiLeo, P. CooperBeginning Ruby 3https://doi.org/10.1007/978-1-4842-6324-2_15

15. Networking and Sockets

Carleton DiLeo1   and Peter Cooper2
(1)
Boulder, CO, USA
(2)
Louth, UK
 

In this chapter, we’re going to look at how to use Ruby to perform network-related operations, how to create servers and network services, and how to create persistent processes (daemons) that can respond to queries over a network.

Chapter 14 looked at Ruby’s Internet capabilities from a high level, like making requests to websites, processing HTML, working with JSON, retrieving email, and managing files over FTP. In contrast, this chapter looks at networking and network services at a lower level.

Let’s start with a look at the ...

Get Beginning Ruby 3: From Beginner to Pro now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.