Re:Beej's Guide to Network Programming
by kqr2 on Monday February 18, 2013 @08:37PM
(#5242068)
Is there a similar or updated guide some place which includes non-blocking i/o?
[ Parent
| on HN ]
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 on level triggered vs edge triggered interrupts: http://en.wikipedia.org/wiki/Interrupt#Level-triggered
Overview of the thundering herd problem: http://www.citi.umich.edu/projects/linux-scalability/reports...
Take a look at lthread http://github.com/halayli/lthread
Re:Beej's Guide to Network Programming
by n0ndescript on Monday February 18, 2013 @09:23PM
(#5242231)
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)
Re:Beej's Guide to Network Programming
by stefantalpalaru on Monday February 18, 2013 @10:03PM
(#5242341)
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