FYI: http://www.wangafu.net/~nickm/libevent-book/TOC.html The Libevent Reference Manual: Preliminaries Libevent is a library for writing fast portable nonblocking IO. Its design goals are: portability speed scalability convenience The components of L…
FYI: http://www.wangafu.net/~nickm/libevent-book/TOC.html Working with events Libevent’s basic unit of operation is the event. Every event represents a set of conditions, including: A file descriptor being ready to read from or write to. A file descr…
FYI: http://www.wangafu.net/~nickm/libevent-book/Ref6_bufferevent.html Bufferevents: concepts and basics Most of the time, an application wants to perform some amount of data buffering in addition to just responding to events. When we want to write d…
FYI:http://www.wangafu.net/~nickm/libevent-book/ This lib is a integral of asynchronous IO. we should change the concept from blocking PRO to nonblocking PRO. Example: A simple blocking HTTP client /* For sockaddr_in */ #include <netinet/in.h> /* Fo…
Libevent is a library for writing fast portable nonblocking IO. libevent是一个为编写快速可移植的非阻塞IO程序而设计的. libevent组件 libevent包括了以下组件: 1. evutil Generic functionality to abstract out the differences between different platforms' networking implementations. 用于抽象…