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

基础网络事件循环接口 更多...

#include <BaseEventLoop.h>

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

Public 成员函数

virtual bool init ()=0
 
virtual ~BaseEventLoop ()=default
 
virtual void dispatch (uint32_t timeout)=0
 
virtual void onAccept (int fd)=0
 
virtual void onRead (BaseEvent *event)=0
 
virtual void onWrite (BaseEvent *event)=0
 
virtual void onError (BaseEvent *event)=0
 
virtual void onClose (BaseEvent *event)=0
 
virtual BaseEventcreateEvent (int fd, unsigned int events, void *data)=0
 
virtual void freeEvent (BaseEvent *event)=0
 
virtual bool setEvent (BaseEvent *event)=0
 
virtual void setListenFd (int fd)=0
 

Protected 属性

bool handleClose = true
 指示当前循环是否处理关闭事件
 

详细描述

基础网络事件循环接口

构造及析构函数说明

◆ ~BaseEventLoop()

virtual sese::event::BaseEventLoop::~BaseEventLoop ( )
virtualdefault

成员函数说明

◆ createEvent()

virtual BaseEvent * sese::event::BaseEventLoop::createEvent ( int fd,
unsigned int events,
void * data )
pure virtual

◆ dispatch()

virtual void sese::event::BaseEventLoop::dispatch ( uint32_t timeout)
pure virtual

◆ freeEvent()

virtual void sese::event::BaseEventLoop::freeEvent ( BaseEvent * event)
pure virtual

◆ init()

virtual bool sese::event::BaseEventLoop::init ( )
pure virtual

◆ onAccept()

virtual void sese::event::BaseEventLoop::onAccept ( int fd)
pure virtual

◆ onClose()

virtual void sese::event::BaseEventLoop::onClose ( BaseEvent * event)
pure virtual

◆ onError()

virtual void sese::event::BaseEventLoop::onError ( BaseEvent * event)
pure virtual

◆ onRead()

virtual void sese::event::BaseEventLoop::onRead ( BaseEvent * event)
pure virtual

◆ onWrite()

virtual void sese::event::BaseEventLoop::onWrite ( BaseEvent * event)
pure virtual

◆ setEvent()

virtual bool sese::event::BaseEventLoop::setEvent ( BaseEvent * event)
pure virtual

◆ setListenFd()

virtual void sese::event::BaseEventLoop::setListenFd ( int fd)
pure virtual

类成员变量说明

◆ handleClose

bool sese::event::BaseEventLoop::handleClose = true
protected

指示当前循环是否处理关闭事件


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