Network Programming with Rust

Learn to write servers and network clients using Rust’s low-level socket classes with this guide
Preview in Mapt
Code Files

Network Programming with Rust

Abhishek Chanda

Learn to write servers and network clients using Rust’s low-level socket classes with this guide

Quick links: > What will you learn?

This title is available to pre-order now and is expected to be published in
eBook
$25.20
RRP $35.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$25.20
$44.99
RRP $35.99
RRP $44.99
eBook
Print + eBook

Frequently bought together


Network Programming with Rust Book Cover
Network Programming with Rust
$ 35.99
$ 25.20
Understanding Software Book Cover
Understanding Software
$ 23.99
$ 16.80
Buy 2 for $34.30
Save $25.68
Add to Cart

Book Details

ISBN 139781788624893
Paperback316 pages

Book Description

Rust is low-level enough to provide fine-grained control over memory while providing safety through compile-time validation. This makes it uniquely suitable for writing low-level networking applications.

This book is divided into three main parts that will take you on an exciting journey: building a fully functional web server. The book starts with a solid introduction to Rust and essential networking concepts. This will lay a foundation for, and set the tone of, the entire book. It takes an in-depth look at using Rust for networking software. Starting with client-server networking using sockets to IPv4/v6, DNS, TCP, UDP, you will also learn about serializing and deserializing data using serde. The book shows how to communicate with REST servers over HTTP and implement asynchronous network programming using the Tokio stack. Given the importance of security for modern systems, you will see how Rust supports common primitives such as TLS and public key cryptography.

After reading this book, you will be more than confident enough to use Rust to build effective networking software.

Table of Contents

What You Will Learn

  • Appreciate why networking is important in implementing distributed systems
  • Write a non-asynchronous echo server over TCP that talks to a client over a network
  • Parse JSON and binary data using parser combinators such as nom
  • Write an HTTP client that talks to the server using reqwest
  • Modify an existing Rust HTTTP server and add SSL to it
  • Master asynchronous programming support in core Rust
  • How to use external packages in a Rust project

Authors

Table of Contents

Book Details

ISBN 139781788624893
Paperback316 pages
Read More

Read More Reviews

Recommended for You

Understanding Software Book Cover
Understanding Software
$ 23.99
$ 16.80
Cinder Creative Coding Cookbook Book Cover
Cinder Creative Coding Cookbook
$ 29.99
$ 21.00
SSL VPN : Understanding, evaluating and planning secure, web-based remote access Book Cover
SSL VPN : Understanding, evaluating and planning secure, web-based remote access
$ 29.99
$ 21.00
Practical Deep Reinforcement Learning Book Cover
Practical Deep Reinforcement Learning
$ 39.99
$ 28.00
Rust Programming By Example Book Cover
Rust Programming By Example
$ 35.99
$ 25.20
Introduction to Rust Programming [Video] Book Cover
Introduction to Rust Programming [Video]
$ 124.99
$ 106.25