Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Events
Videos
Audiobooks
Packt Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Systems Programming with Zig

You're reading from   Systems Programming with Zig Build Real Tools with No Hidden Cost

Arrow left icon
Product type Paperback
Published in Jun 2026
Publisher Packt
ISBN-13 9781807426439
Length 542 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Mihalis Tsoukalos Mihalis Tsoukalos
Author Profile Icon Mihalis Tsoukalos
Mihalis Tsoukalos
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Preface 1. Part 1: Zig Foundations
2. Chapter 1: Building Essential UNIX Tools FREE CHAPTER 3. Chapter 2: Systems Infrastructure: Builds, Testing, and Distribution 4. Chapter 3: Direct Memory Access and Binary Formats 5. Chapter 4: Processing Streams, Buffers, and Data Encoding 6. Part 2: Systems Programming in Practice
7. Chapter 5: Navigating Directories and Filesystem Events 8. Chapter 6: Programming the Network Stack 9. Chapter 7: Managing Threads, Processes, and Signals 10. Chapter 8: Orchestrating Concurrency and Synchronization 11. Chapter 9: Implementing Asynchronous I/O 12. Chapter 10: Building a High-Performance In-Memory Cache Server 13. Chapter 11: Persisting Structured Data with SQLite3 14. Chapter 12: Developing a Domain-Specific Language 15. Chapter 13: Unlock Your Exclusive Benefits 16. Other Books You May Enjoy 17. Index

6

Programming the Network Stack

Networks are the connective tissue of modern software — understanding how to program them at the socket level gives us insight that no amount of high-level abstraction can replace. First, you need to understand TCP/IP – the foundational protocol suite that powers the Internet and most local networks. TCP/IP stands for Transmission Control Protocol/Internet Protocol, a layered set of rules that govern how data is packaged, addressed, transmitted, and received between computers. At a high level, IP handles addressing and routing, ensuring that data reaches the correct destination, while TCP ensures that data is delivered reliably and in order. Together, they enable computers to exchange information transparently across diverse hardware and networks. Port numbers help identify specific services or applications running on a device. While an IP address identifies a host on the network, a port number specifies which process on that host...

lock icon The rest of the chapter is locked
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Systems Programming with Zig
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at AU $24.99/month. Cancel anytime
Modal Close icon
Modal Close icon