- addEvent
bool addEvent(AsyncEvent* event)
添加一个Channel对象到事件队列中。
@param socket = 添加到时间队列中的Channel对象,根据其type自动选择需要注册的事件。
@return true 添加成功, false 添加失败,并把错误记录到日志中.
- delEvent
bool delEvent(AsyncEvent* event)
从epoll队列中移除Channel对象。
@param socket = 需要移除的Channel对象
@return (true) 移除成功, (false) 移除失败,并把错误输出到控制台.
- initer
void initer()
Undocumented in source. Be warned that the author may not have intended to support it.
- isErro
bool isErro(uint events)
Undocumented in source. Be warned that the author may not have intended to support it.
- isRead
bool isRead(uint events)
Undocumented in source. Be warned that the author may not have intended to support it.
- isWrite
bool isWrite(uint events)
Undocumented in source. Be warned that the author may not have intended to support it.
- modEvent
bool modEvent(AsyncEvent* event)
Undocumented in source. Be warned that the author may not have intended to support it.
- wait
void wait(int timeout)
调用epoll_wait。
@param timeout = epoll_wait的等待时间
@param eptr = epoll返回时间的存储的数组指针
@param size = 数组的大小
@return 返回当前获取的事件的数量。
- weakUp
void weakUp()
Undocumented in source. Be warned that the author may not have intended to support it.
系统I/O事件处理类,epoll操作的封装