libevent
文章平均质量分 57
禾夕
这个作者很懒,什么都没留下…
展开
-
Libevent时间管理
转载自: http://blog.csdn.net/luotuo44/article/details/38661787基本时间操作函数: Libevent采用的时间类型是struct timeval,这个类型在很多平台都提供了。此外,Libevent还提供了一系列的时间操作函数。比如两个struct timeval相加、相减、比较大小。有些平台直转载 2015-03-31 20:24:17 · 1435 阅读 · 0 评论 -
Libevent基本流程
以libevent的sample中的time_test.c为例,在windows下单步调试,分析其基本流程。//time_test.c源码如下:#include #include #include #include #include #include #include #include #include #include #include #include #inc原创 2015-03-30 09:37:20 · 655 阅读 · 0 评论 -
libevent中bufferevent的使用
以下面的bufferevent-test.c为例,在windows下单步调试,分析bufferevent的基本使用。#include <stdio.h>#include <stdlib.h>#include <errno.h>#include <assert.h>#include <winsock2.h>#include <event2/event.h>#include <event2/e原创 2015-04-09 17:11:14 · 7105 阅读 · 0 评论 -
libevent中bufferevent.c中的部分函数使用
//bufferevent的初始化与释放int bufferevent_init_common(struct bufferevent_private *bufev_private,struct event_base *base,const struct bufferevent_ops *ops,enum bufferevent_options options){ //buffereven原创 2015-04-10 19:52:06 · 1539 阅读 · 0 评论