Chapter 17Programming with Sockets
Most of the more interesting programs that I write involve sockets one way or another. Programming with sockets is fun because it allows applications to interact with other machines on the Internet, which has far more potential than just performing local operations.
A socket is a communication channel that allows machines to communicate over the Internet using the Internet Protocol (IP). In this chapter, we’ll concentrate on the two core protocols of the Internet: Transmission Control Protocol (TCP) and User Datagram Protocol (UDP).
UDP lets applications send short messages (called datagrams) to each other, but there is no guarantee of delivery for these messages. They can also arrive out of order. TCP, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access