libevent
donnyxia1128
学无止境;
展开
-
A tiny introduction to asynchronous IO
http://www.wangafu.net/~nickm/libevent-book/01_intro.htmlThese documents are Copyright (c) 2009-2010 by Nick Mathewson, and are made a转载 2011-10-01 23:51:53 · 848 阅读 · 0 评论 -
libevent 在window环境编译
系统:win7编译器:vc20101,下载最新的libevent,目前是libevent-2.0.14-stable.tar.gz。2, 解压到目录libevent-2.0.14-stable3,修改“D:\libevent-2.0.10-stable\event原创 2011-10-07 21:54:25 · 3427 阅读 · 0 评论 -
event_base_loop
函数:int event_base_loop(struct event_base *, int);等待事件被触发,然后调用它们的回调函数。这是 event_base_dispatch的更灵活版本。默认情况下,这个循环会一直运行,直到没有添加的事件,或者直到调用了event原创 2011-10-10 13:12:03 · 20718 阅读 · 0 评论 -
Libevent(二)
Libevent提供了一个基于缓冲IO的抽象。这个抽象就是bufferevent。Bufferevent提供了自动填充和输出的缓冲区。用户不会直接和IO打交道,而是从输入缓冲区读,在输出缓冲区写。一旦用bufferevent_socket_new初始化,bufferevent翻译 2011-10-10 09:32:50 · 4014 阅读 · 0 评论 -
libevent(一)
Libevent 是一个基于事件通知机制的网络库,用来开发可扩展性的网络服务器。Libevent提供了一种机制,可以在指定事件发生于某文件描述符或者一个超时事件到达的时候执行一个回调函数。进一步,Libevent也支持信号触发的回调。Libevent用来替换目前的基于事件驱动原创 2011-10-09 21:22:19 · 3346 阅读 · 0 评论 -
event_new
truct event *event_new(struct event_base *, evutil_socket_t, short, event_callback_fn, void *);分配并初始化一个新的event结构体,准备被添加。该函数返回一个新的event,可原创 2011-10-10 14:41:29 · 11762 阅读 · 0 评论 -
poll vs select vs event-based
poll vs select vs event-based I failed to find a thorough comparison page on poll() vs select() so I wrote my own. If you find flaws or have additions, please let me know! My blog post also provides转载 2011-11-02 19:52:03 · 729 阅读 · 0 评论 -
BENCHMARKING LIBEVENT AGAINST LIBEV
BENCHMARKING LIBEVENT AGAINST LIBEVTop2011-01-11, Version 6This document briefly describes the results of running the libevent benchmark program against both libevent and libev.Libevent Ov转载 2011-11-01 22:35:00 · 1080 阅读 · 0 评论