
libevent
春泥面包
这个作者很懒,什么都没留下…
展开
-
libevent : struct event & struct event_base
原文: http://www.cnblogs.com/hustcat/archive/2010/08/31/1814022.htmllibevent将I/O事件、定时器、信号进行统一处理,也就是所谓的“统一事件源”(见《Linux高性能服务器编程》)。 结构体event代表一个事件。结构体event_base是处理事件的框架。//event.hstruct event {TAILQ_ENTR转载 2016-05-10 14:20:38 · 1832 阅读 · 0 评论 -
使用libevent:echo server
原文: https://www.felix021.com/blog/read.php?2068echo server// gcc echo_server.c -levent -o es#include <stdio.h>#include <stdlib.h>#include <errno.h>#include <assert.h>#include <event2/event.h>#inc原创 2016-05-04 16:10:14 · 860 阅读 · 0 评论 -
Libevent : LibeventBook
http://www.wangafu.net/~nickm/libevent-book/ 前言以下内容是对《LibeventBook》的翻译Chapter6 : Creating a event_base Before you can use any interesting Libevent function, you need to allocate one ...翻译 2016-06-28 21:54:35 · 1893 阅读 · 0 评论 -
Libevent : queue.h evbuffer bufferevent
Libevent源码中queue.h包含了链表的实现。在学习前参考了内核链表的设计,基本理解了queue.h的设计初衷。0 内核链表 内核链表: https://www.ibm.com/developerworks/cn/linux/kernel/l-chain/内核的链表(List, 双向链表)为了“通用性”,避免了为每个数据项类型定义自己的链表的麻烦,将链表节点结构“嵌入”到需要链表的st原创 2017-08-14 15:53:39 · 504 阅读 · 0 评论