Sese Framework  x.y.z
A cross-platform framework
载入中...
搜索中...
未找到
sese::event::KqueueEventLoop类 参考

kqueue 事件循环 更多...

#include <KqueueEventLoop.h>

类 sese::event::KqueueEventLoop 继承关系图:
sese::event::BaseEventLoop

Public 成员函数

bool init () override
 
 ~KqueueEventLoop () override
 
void dispatch (uint32_t timeout) override
 
void onAccept (int fd) override
 
void onRead (BaseEvent *event) override
 
void onWrite (BaseEvent *event) override
 
void onError (BaseEvent *event) override
 
void onClose (BaseEvent *event) override
 
BaseEventcreateEvent (int fd, unsigned int events, void *data) override
 
void freeEvent (BaseEvent *event) override
 
bool setEvent (BaseEvent *event) override
 
void setListenFd (int fd) override
 
- Public 成员函数 继承自 sese::event::BaseEventLoop
virtual ~BaseEventLoop ()=default
 

Protected 属性

int listenFd {-1}
 
BaseEventlistenEvent {nullptr}
 
int kqueue {-1}
 
- Protected 属性 继承自 sese::event::BaseEventLoop
bool handleClose = true
 指示当前循环是否处理关闭事件
 

详细描述

kqueue 事件循环

构造及析构函数说明

◆ ~KqueueEventLoop()

sese::event::KqueueEventLoop::~KqueueEventLoop ( )
override

引用了 close().

成员函数说明

◆ createEvent()

sese::event::BaseEvent * sese::event::KqueueEventLoop::createEvent ( int fd,
unsigned int events,
void * data )
overridevirtual

◆ dispatch()

void sese::event::KqueueEventLoop::dispatch ( uint32_t timeout)
overridevirtual

◆ freeEvent()

void sese::event::KqueueEventLoop::freeEvent ( BaseEvent * event)
overridevirtual

◆ init()

bool sese::event::KqueueEventLoop::init ( )
overridevirtual

◆ onAccept()

void sese::event::KqueueEventLoop::onAccept ( int fd)
overridevirtual

◆ onClose()

void sese::event::KqueueEventLoop::onClose ( BaseEvent * event)
overridevirtual

◆ onError()

void sese::event::KqueueEventLoop::onError ( BaseEvent * event)
overridevirtual

◆ onRead()

void sese::event::KqueueEventLoop::onRead ( BaseEvent * event)
overridevirtual

◆ onWrite()

void sese::event::KqueueEventLoop::onWrite ( BaseEvent * event)
overridevirtual

◆ setEvent()

bool sese::event::KqueueEventLoop::setEvent ( BaseEvent * event)
overridevirtual

◆ setListenFd()

void sese::event::KqueueEventLoop::setListenFd ( int fd)
inlineoverridevirtual

实现了 sese::event::BaseEventLoop.

引用了 listenFd.

类成员变量说明

◆ kqueue

int sese::event::KqueueEventLoop::kqueue {-1}
protected

被这些函数引用 init().

◆ listenEvent

BaseEvent* sese::event::KqueueEventLoop::listenEvent {nullptr}
protected

被这些函数引用 init().

◆ listenFd

int sese::event::KqueueEventLoop::listenFd {-1}
protected

被这些函数引用 init() , 以及 setListenFd().


该类的文档由以下文件生成: