Chapter 26. Making Network Connections with Sockets

In this chapter, you’ll learn about how to send data between programs running on different machines using computer networks. This is a pretty advanced topic for beginners, but if you’ve made it this far, I think you’re up for a challenge.

Whenever you connect two or more computers together (using a cable or wireless connection), you’re creating a computer network. The most well-known computer network is the Internet, which allows computers all over the world to talk to each other. Computer networks are used for all sorts of things, from ordering pizza to coordinating the global financial system.

When two programs want to talk to one another, one of them opens a connection to the other one. ...

Get Hello World! Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.