Chapter 11: Learning Network Programming
In the previous chapter, we learned how to communicate with peripheral devices from Rust programs. In this chapter, we will switch our focus to another important system programming topic – networking.
Most modern operating systems, including Unix/Linux and Windows variants, have native support for networking using TCP/IP. Do you know how you can use TCP/IP to send byte streams or messages from one computer to another? Do you want to know what kind of language support Rust provides for synchronous network communications between two processes running on different machines? Are you interested in learning the basics of configuring TCP and UDP sockets, and working with network addresses and listeners in Rust? Then, read on.
We will cover these topics in the following order:
- Reviewing networking basics in Linux
- Understanding networking primitives in the Rust standard library
- Programming with TCP and UDP in Rust
- Writing...