-
Book Overview & Buying
-
Table Of Contents
The Rust Programming Handbook
By :
Beyond manipulating files on a local disk, many applications require communication over a network, whether fetching data from a web API, interacting with a database server, or building a peer-to-peer application. Rust’s standard library offers solid primitives for network programming, especially for working with TCP and UDP protocols.
In this section, we’ll focus on the fundamentals of TCP networking by building a simple client and server to demonstrate these concepts in action.
The following one is not a detailed explanation, but more of a refresher (there are entire books and materials about networking). Also, if you are already familiar with these concepts, feel free to skip the following section.
Before diving into Rust code, let’s briefly touch upon some core networking concepts.
If you are already familiar with them, you can skip this.