source Code
文章平均质量分 79
macyang
Chance is waiting for prepared people and my Status is read the fucking source code.
展开
-
ioctl {SIOCGIFCONF}
#include #include #include #include #include #include #include #define MAX_IFS 64int main(int argc, char **argv) { struct ifreq *ifr, *ifend; struct ifreq ifreq; st原创 2009-11-09 19:02:00 · 7030 阅读 · 2 评论 -
libevent源码
Libevent 的源代码虽然都在一层文件夹下面,但是其代码分类还是相当清晰的,主要可分为头文件、内部使用的头文件、辅助功能函数、日志、libevent 框架、对系统 I/O 多路复用机制的封装、信号管理、定时事件管理、缓冲区管理、基本数据结构和基于 libevent的两个实用库等几个部分,有些部分可能就是一个源文件。 (1)头文件 主要就是 event.h:事件宏定义、接口函数声明,主要结构体 event 的声明; (2)内部头文件 xxx-internal.h:内部数据结构和原创 2010-09-17 11:30:00 · 2003 阅读 · 0 评论