眯眯眼御姐

文章
7
资源
0
加入时间
3年0月28天

C++ Libevent 基础Libevent的入门基础

Libevent的入门基础Libevent 是 C语言编写的、轻量级事件通知库基地 event_base使用Libevent之前,需要先申请一个 event_base 结构,创建根节点struct event_base *event_base_new(viod);申请到event_base结构体,用完后,通过 event_base_free 释放void event_base_free(struct event_base *)如果你fork出一个子进程,在子进程中也想用event_base