TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Beej's Guide to Network Programming (2012)

170 pointsby hikzabout 10 years ago

15 comments

nilliamsabout 10 years ago
Once upon a time (about 7 years ago) Beej&#x27;s guides saved my life at work when trying to implement network stuff in C for a project at work I was in over my head on.<p>If there was more stuff like this in C-land I probably wouldn&#x27;t have been clambering to get away from C and into more nurturing, sharing communities at the first opportunity.<p>Really cool to see he&#x27;s keeping it up to date.
评论 #9449531 未加载
评论 #9450162 未加载
ndesaulniersabout 10 years ago
Definitely a great read, one I recommend frequently. Nowadays, I reach for ASIO. I think I read yesterday it&#x27;s going to be included in C++17? Much more portable than POSIX sockets. After reading this I implemented a multithreaded version [0], then started contributing to h2o [1].<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;nickdesaulniers&#x2F;c-http-server&#x2F;blob&#x2F;master&#x2F;threaded.c" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nickdesaulniers&#x2F;c-http-server&#x2F;blob&#x2F;master...</a><p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;h2o&#x2F;h2o" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;h2o&#x2F;h2o</a>
_cbdevabout 10 years ago
Definitely a great and very instructive read, and one of the few to include IPv6 and the correct usage of getaddrinfo.<p>It&#x27;s the guide I recommend to everyone who wants to learn about network programming in C. I actually purchased the (slightly expensive) printed version and never regretted it :)<p><a href="http:&#x2F;&#x2F;www.lulu.com&#x2F;shop&#x2F;brian-hall&#x2F;beejs-guide-to-network-programming&#x2F;paperback&#x2F;product-18179133.html" rel="nofollow">http:&#x2F;&#x2F;www.lulu.com&#x2F;shop&#x2F;brian-hall&#x2F;beejs-guide-to-network-p...</a>
评论 #9447417 未加载
评论 #9449327 未加载
mustaphaabout 10 years ago
I think there are better (more correctly written) guides to network programming, i.e., UNIX Network Programming (old, but the newest volume: The Sockets Networking API - was written in 2003), and TCP&#x2F;IP Illustrated (also most recently updated with a 2nd edition in 2011) by the late, great W. Richard Stevens - despite his sole work being horribly out of date, with later volumes being worked on by Bill Fenner and Andy Rudoff, I would honestly look no further in lieu of socket programming in C.
评论 #9448767 未加载
dugmartinabout 10 years ago
This site plus Stevens&#x27; book were my goto resources in the 90&#x27;s for Unix network programming.
评论 #9447718 未加载
devnonymousabout 10 years ago
Not just the Network Programming guide, all of beej&#x27;s guides are pretty awesome -- Specific purpose and very readable (even for non-native english speakers).<p><a href="http:&#x2F;&#x2F;beej.us&#x2F;guide&#x2F;" rel="nofollow">http:&#x2F;&#x2F;beej.us&#x2F;guide&#x2F;</a>
christianbryantabout 10 years ago
Wow, I haven&#x27;t looked at Beej in a long time. Everything&#x27;s cleaner and even more useful for entry-level consumption. When I saw the link I first thought &quot;boy, that&#x27;s an oldie but goodie&quot; but the 2012 really was accurate. Keep this in circulation. He deserves the kudos and the audience.
de_wq912AesppE5about 10 years ago
Back in college I wrote this address on the board and told fellow students that this was a good site to learn some C basics and learn network programming. Most people just laughed at the name, but I like to think Beej helped some people who decided to check it out.
sporkenfangabout 10 years ago
Why can&#x27;t (more) textbooks be written like this? There&#x27;s no need to make CS dry -- as long as the technical details are correct, it can and should be fun to follow the work.
评论 #9447892 未加载
edsiper2about 10 years ago
This guide was very helpful around 2001-... to build Monkey HTTP Server:<p><a href="http:&#x2F;&#x2F;monkey-project.com" rel="nofollow">http:&#x2F;&#x2F;monkey-project.com</a> <a href="http:&#x2F;&#x2F;github.com&#x2F;monkey&#x2F;monkey" rel="nofollow">http:&#x2F;&#x2F;github.com&#x2F;monkey&#x2F;monkey</a>
评论 #9447932 未加载
GoodIntentionsabout 10 years ago
This thing helped me with networking immensely in college. Nice to see it still exists.
Blackthornabout 10 years ago
This guide was how I learned the Posix networking APIs so long ago. Thanks, Beej!
cyphaxabout 10 years ago
I read this guide, used it only a few years back when I wanted to learn more about network programming. It&#x27;s a very well written guide. Certainly a great way to learn about network programming!
____miahabout 10 years ago
Same boat with most of you guys, Beej&#x27;s site is really interesting, not just this one. Glad that it is still up and running. +1
pyreabout 10 years ago
Definitely remember reading this helping me through C sockets in University circa 2001~2002.