libevent
gyafdxis
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
展开
-
libevent
size_t _event_strlcpy(dst, src, siz) char *dst; const char *src; size_t siz; { register char *d = dst; register const char *s = src; register size_t n = siz; /* Copy as many bytes as will fit原创 2015-10-08 18:25:14 · 421 阅读 · 0 评论 -
libevent源码浅析
struct event { TAILQ_ENTRY (event) ev_next; TAILQ_ENTRY (event) ev_active_next; TAILQ_ENTRY (event) ev_signal_next; unsigned int min_heap_idx; /* for managing timeouts */ struct event_base *ev_ba原创 2015-10-08 18:03:22 · 419 阅读 · 0 评论 -
libevent
Libevent Memory Mange #include #include #include原创 2015-10-13 16:57:39 · 533 阅读 · 0 评论 -
libevent
libevent细解event_base 首先需要的是配置event_base,我这里假设读者都熟悉一点libevent,libevent是基于event的,然后event_base就是对注册激活的event处理,或者还可以调用event_dispeach进行处理。 建立event_base只需要这个函数就可以 struct event_base * event_base_new(void);原创 2015-10-15 22:17:44 · 695 阅读 · 0 评论