Thư viện tri thức trực tuyến
Kho tài liệu với 50,000+ tài liệu học thuật
© 2023 Siêu thị PDF - Kho tài liệu học thuật hàng đầu Việt Nam

Network Programming with Rust
Nội dung xem thử
Mô tả chi tiết
Network Programming with Rust
Build fast and resilient network servers and clients by leveraging
Rust's memory-safety and concurrency features
Abhishek Chanda
BIRMINGHAM - MUMBAI
Network Programming with Rust
Copyright © 2018 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or
transmitted in any form or by any means, without the prior written permission of the publisher,
except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information
presented. However, the information contained in this book is sold without warranty, either express
or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable
for any damages caused or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and
products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot
guarantee the accuracy of this information.
Commissioning Editor: Merint Mathew
Acquisition Editor: Chaitanya Nair
Content Development Editor: Vikas Tiwari
Technical Editor: Diwakar Shukla
Copy Editor: Safis Editing
Project Coordinator: Ulhas Kambali
Proofreader: Safis Editing
Indexer: Mariammal Chettiyar
Graphics: Tania Dutta
Production Coordinator: Shantanu Zagade
First published: February 2018
Production reference: 1260218
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78862-489-3
www.packtpub.com
To my wife, Anasua, for being an amazing partner and friend, and also for
all the diagrams in this book.
To the memory of my mother, Sikha, for her sacrifices and for exemplifying
the power of determination.
mapt.io
Mapt is an online digital library that gives you full access to over 5,000
books and videos, as well as industry leading tools to help you plan your
personal development and advance your career. For more information,
please visit our website.
Why subscribe?
Spend less time learning and more time coding with practical eBooks
and Videos from over 4,000 industry professionals
Improve your learning with Skill Plans built especially for you
Get a free eBook or video every month
Mapt is fully searchable
Copy and paste, print, and bookmark content
PacktPub.com
Did you know that Packt offers eBook versions of every book published,
with PDF and ePub files available? You can upgrade to the eBook version
at www.PacktPub.com and as a print book customer, you are entitled to a
discount on the eBook copy. Get in touch with us at [email protected] for
more details.
At www.PacktPub.com, you can also read a collection of free technical articles,
sign up for a range of free newsletters, and receive exclusive discounts and
offers on Packt books and eBooks.
Contributors
About the author
Abhishek Chanda studied computer science at IIEST Shibpur in India and
electrical engineering at Rutgers University. He has lived and worked in
multiple countries, working on distributed systems since 2008 at big
companies such as Microsoft as well as a number smaller start-ups.
Currently, he is working with DataSine in London, where he is responsible
for the scalable deployment of infrastructure powering the backend systems
of the DataSine platform. He contributes to a number of open source
projects, including Rust.
I would like to thank Packt and their wonderful team for making this
possible, especially Vikas, Chaitanya, Madhunikita, and Diwakar. I am
grateful to Pradeep and all the reviewers for their insightful comments. This
book would not have been possible without the support of my wife, Anasua.
About the reviewer
Pradeep R is a software professional at Gigamon. He is a technology
enthusiast passionate about network programing and security, with wide
experience in working on leading enterprise network switching and routing
solutions and in development and deployment of traditional network
security elements. Currently, he is working on next-generation network
pervasive visibility solutions.
He extensively works with C, C++, Python, JavaScript, Perl, and
occasionally with Java, .NET, and Rust. Pradeep has recently reviewed Rust
Cookbook.
I would like to thank Vigneshwer Dhinakaran, my brother, who has shown
me that boundaries exists only in our minds and they are meant to be
breached. I would also like to acknowledge with gratitude my mother,
Vasanthi, my grandma, Sulochana, and my sister, Deepika, for their
constant encouragement and support.
Packt is searching for authors like
you
If you're interested in becoming an author for Packt, please visit authors.packtp
ub.com and apply today. We have worked with thousands of developers and
tech professionals, just like you, to help them share their insight with the
global tech community. You can make a general application, apply for a
specific hot topic that we are recruiting an author for, or submit your own
idea.
Table of Contents
Title Page
Copyright and Credits
Network Programming with Rust
Dedication
Packt Upsell
Why subscribe?
PacktPub.com
Contributors
About the author
About the reviewer
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Conventions used
Get in touch
Reviews
1. Introduction to Client/Server Networking
A brief history of networks
Layering in networks
Addressing in networks
How IP routing works
How DNS works
Common service models
Connection-oriented service
Connectionless service
The network programming interface in Linux
Summary