-
-
- 读事件(EV_READ)
- 写事件(EV_WRITE)
- 超时事件(EV_TIMEOUT)
- 在三种事件类型的基础上, 支持事件驻留在事件集中的永久模式(EV_PERSIST)
-
- 设置事件属性 event_set()
- 设置事件回调函数 event_set_callback()
-
- 向事件集中添加事件 evsets_add()
- 从事件集中删除事件 evsets_del()
- 分发并处理事件 evsets_dispatch()
-
-
-
- nthreads: 指定网络线程的个数
- nclients: 推荐连接数
- immediately: 数据是否会立刻推送到网络层,对实时性要求很高的场景, 建议设置为1
-
- 设置线程上下文: iolayer_set_iocontext()
- 设置网络层数据改造方法: iolayer_set_transform()
-
- 此处存在一次性内存泄漏(272bytes)
-
- 设置会话的超时时间 iolayer_set_timeout()
- 设置会话的保活时间 iolayer_set_keepalive()
- 设置会话的IO服务逻辑 iolayer_set_service()
-
- 停止对外提供接入服务, 不再接受新的连接;
- 停止所有连接的接收服务, 不再回调ioservice_t::process()
-
-
Notifications
You must be signed in to change notification settings - Fork 5
libevlite - A simple Network library that contains the Event library, Thread library, Communications library. Event library is LIBEVENT Lite Edition, so named for the LIBEVLITE
License
spriteray/libevlite
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
libevlite - A simple Network library that contains the Event library, Thread library, Communications library. Event library is LIBEVENT Lite Edition, so named for the LIBEVLITE
Topics
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published