I have studyed the source of libevent version 0.1. The source is so simple, but you can know what the author want to do. As a matter of fact, I found that you can adopt the idea of the event principle of the libevent. If you are not going to develop a high performance server like nginx, lighttpd, and so on, the technique is enough to you. You also can understand the event loop in the nginx, lighttpd ...
The libevent grows more power. However, some technique added is unuseful to me now.
本文解析了libevent 0.1版本的源码,介绍了其简单的内部结构及核心思想。作者认为对于不需要实现类似nginx或lighttpd等高性能服务器的应用来说,libevent的技术已经足够使用,并且能够帮助理解如nginx、lighttpd等软件中的事件循环机制。
1042

被折叠的 条评论
为什么被折叠?



