O'Reilly logo

Beginning Ruby: From Novice to Professional, Third Edition by Peter Cooper

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© Peter Cooper 2016

Peter Cooper, Beginning Ruby, 10.1007/978-1-4842-1278-3_15

15. Networking and Sockets

Peter Cooper

(1)Louth, Lincs, 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 web sites, processing HTML, working with XML, retrieving e-mail, 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 basic networking concepts we’ll be using in this chapter.

Networking Concepts

A network ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required