guodongxiaren/unp — explained in plain English
Analysis updated 2026-08-03 · repo last pushed 2015-02-11
Study working C examples of socket programming to learn how clients and servers communicate.
Follow along with the Unix Network Programming book using the companion source code.
Explore how TCP and UDP connections are established and data is exchanged at a low level.
Use the examples as a reference when building your own networked applications.
| guodongxiaren/unp | 0verflowme/radare2 | ac000/find-flv | |
|---|---|---|---|
| Language | C | C | C |
| Last pushed | 2015-02-11 | 2026-07-02 | 2013-04-05 |
| Maintenance | Dormant | Maintained | Dormant |
| Setup difficulty | easy | moderate | moderate |
| Complexity | 2/5 | 4/5 | 2/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Standard C compilation with gcc on a Unix-like system is sufficient, no external dependencies required.
This repository, called unp, contains C source code accompanying the book Unix Network Programming by W. Richard Stevens. It provides working examples of how to build networked applications that follow the Unix programming tradition. The code demonstrates fundamental networking concepts such as creating sockets, establishing connections between clients and servers, and exchanging data over TCP and UDP protocols. In practical terms, this means the examples show how two computers can talk to each other over a network, similar to how a web browser talks to a web server, or how a chat application sends messages between users. By studying the source files, a reader can see the step-by-step mechanics of opening a network connection, listening for incoming requests, and handling data transfer. The primary audience for this project is people learning network programming from the ground up. A computer science student taking a networking course, a self-taught programmer exploring systems programming, or a developer who wants to understand how internet communications work at a low level would all find this useful. It is essentially a companion study aid rather than a standalone application or tool you would deploy. Because the project is purely educational, it makes no tradeoffs toward performance, security hardening, or user-friendliness. The examples are written for clarity and teaching, not for production use. You would not run this code to power a real product, but rather to understand the building blocks that real products rely on.
Companion C source code for the book Unix Network Programming, showing how to build networked applications using sockets, TCP, and UDP through step-by-step examples.
Mainly C. The stack also includes C, Unix Sockets, TCP.
Dormant — no commits in 2+ years (last push 2015-02-11).
No license information is provided, so usage rights are unclear.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Don't trust strangers blindly. Verify against the repo.