http://www.wangafu.net/~nickm/libevent-book/TOC.html 中的Chapter 1: A tiny introduction to asynchronous IO.