Live data from Hacker News

Beej's Guide to Network Programming

beej.us

41–50 of 51 posts

Re: Beej's Guide to Network Programming

#43

Earlier quoted context omitted.

There is http://www.wangafu.net/~nickm/libevent-book/ which is useful even if you are not using libevent (which most of the cool kids are)

Some of those cool kids should take a look at libev: http://software.schmorp.de/pkg/libev.html

Or libuv: https://github.com/joyent/libuv

Re: Beej's Guide to Network Programming

#44
post #16

When I was at university I wanted to take a class that had 'introduction to computer networks' as a prerequisite, but I didn't want to wait 2 semesters for it to come around again after taking networks first. I spoke to the professor and he said he'd let me enroll in the course if I promised to carefully read Beej's guide first, since it contains all the essentials I'd really need for this follow-on. So, this saved m…

Same here. My course was a simple one and didn't include network programming, and at the same time I was learning about select() and co in C. This was a great primer especially for me as I had some Python knowledge; it really helped with understanding network programming at a lower level.

Even if you don't code the examples, reading them will give you so much information.

Re: Beej's Guide to Network Programming

#47
post #23

Is there a similar or updated guide some place which includes non-blocking i/o?

Check out "The C10K Problem" ( http://www.kegel.com/c10k.html ) for a high level discussion of some techniques for high performance servers. For basic info on Epoll: http://www.devshed.com/c/a/BrainDump/Linux-Files-and-the-Eve... epoll socket tutorial: http://kovyrin.net/2006/04/13/epoll-asynchronous-network-pro... Or kqueue if your OS supports it: http://wiki.netbsd.org/tutorials/kqueue_tutorial/ Lower level details…

Take a look at lthread http://github.com/halayli/lthread

Re: Beej's Guide to Network Programming

#49
post #21

it's a shortcut to learn basic network programming with sockets, without spending too much time on it. Anyone more than casually serious about it should consider looking at Richard Stevens books, Unix network programming and TCP/IP illustrated (esp. volume 2).

I'm shocked that you are the only one to mention rstevens, It won't be far fetched if Beej learned from rstevens.
Post reply on HN