Seeking Comprehensive Resource for Network Programming in Rust (Theory + API)

I have mastered the core concepts of the Rust language by studying two key books ("The Rust Programming Language" and "Rust By Example") and reinforcing the theory with practical challenges on Codewars. I believe this foundation is sufficient to move on to learning network programming.

In this regard, I have a question for you as experienced Rust developers: what resources would you recommend for getting started in this area? The problem with the materials I've found so far is that they are either too superficial or, on the contrary, aimed at a reader who is already well-prepared.

I am often advised to look into the standard library (std::net ). However, it only describes the interface (API). For example, for the bind function, I only see a formal description of the code, but I don't understand how the underlying mechanisms themselves work (TCP protocols, IP addresses).

I am looking for a source (a book, structured documentation, a video course) that combines both the theory of network protocols and an explanation of the programming interface in Rust (or even C, if that's a better option for understanding the fundamentals).

Do you have a reasonable existing understanding of TCP? It is a bit hard to imagine, but I think if I didn’t have that ( and my understanding is fairly rudimentary, but enough to get by ) I would consult wikipedia:

That understanding should give you a reasonable idea of what the library is doing.

1 Like

maybe this book Async Program in Rust could help you.
In few opening chapter, it introduce simply how application layer,syscall interact with hardware in kernel
but if you have free time you can watch it.
he impliment rfc 793 (RFC 793 - Transmission Control Protocol) .
https://youtu.be/bzja9fQWzdA?si=97hupQcqm5guJQuy

2 Likes