随笔分类 -  libevent

摘要:学习libevent有助于提升程序设计功力,除了网络程序设计方面外,libevent的代码里有很多有用的设计技巧和基础数据结构,比如信息隐藏、函数指针、c语言的多态支持、链表和堆等等,都有助于提升自身的程序功力。 程序设计不止要了解框架,很多细节之处恰恰也是事关整个系统成败的关键。只对libeven 阅读全文
posted @ 2019-04-02 10:05 大老虎打老虎 阅读(2727) 评论(0) 推荐(0) 编辑
摘要:重点看https://blog.csdn.net/move_now/article/category/7254783 http://www.doc88.com/p-6951371052737.html https://www.cnblogs.com/nearmeng/p/4043548.html h 阅读全文
posted @ 2019-02-28 00:08 大老虎打老虎 阅读(147) 评论(0) 推荐(0) 编辑
摘要:写两个简单的demo,对照一下各自的方法 阅读全文
posted @ 2018-06-25 16:51 大老虎打老虎 阅读(4177) 评论(0) 推荐(0) 编辑
摘要:之前简单分析了libevent的源码,过了一段时间要用的时候发现完全忘记了。。从头记录一下流程 1.编译 可以从github下载libevent的压缩包,解压后 修改以下三个文件,添加宏定义: 在以下3个文件开头添加“#define _WIN32_WINNT 0x0500” libevent-2.0 阅读全文
posted @ 2018-06-25 14:30 大老虎打老虎 阅读(310) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/FreeeLinux/article/details/52799951 http://cache.baiducontent.com/c?m=9d78d513d9931ff20dfa950e1a16a0711824c1386084c7140fc3933f84 阅读全文
posted @ 2018-04-09 20:05 大老虎打老虎 阅读(113) 评论(0) 推荐(0) 编辑
摘要:#include"stdafx.h" #include"iostream" #include "algorithm" #include"string" #include"vector" #include"set" #include"map" #include "iostream" #include "thread" #include #include #include #inc... 阅读全文
posted @ 2018-04-09 20:04 大老虎打老虎 阅读(420) 评论(0) 推荐(0) 编辑
摘要:select;i/o 阅读全文
posted @ 2018-03-18 22:32 大老虎打老虎 阅读(830) 评论(0) 推荐(0) 编辑
摘要:上一节着重分析了event_init是如何集成signal,这一节从event_add展开分析 ev_events有四种类型 I/O事件: EV_WRITE和EV_READ 定时事件:EV_TIMEOUT 信号: EV_SIGNAL 辅助选项:EV_PERSIST,表明是一个永久事件 ev_flag 阅读全文
posted @ 2018-03-17 19:32 大老虎打老虎 阅读(321) 评论(2) 推荐(0) 编辑
摘要:libevent;signal 阅读全文
posted @ 2018-03-12 23:06 大老虎打老虎 阅读(505) 评论(0) 推荐(0) 编辑
摘要:参考:http://blog.csdn.net/yusiguyuan/article/category/2171081/2 http://blog.csdn.net/sparkliang/article/category/660506 一。event结构体 1)event结构体中有三个双向链表。ev 阅读全文
posted @ 2018-03-11 20:29 大老虎打老虎 阅读(746) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示