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

WSAEventSelect 事件循环 更多...

#include <WSAEventLoop.h>

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

Public 成员函数

 ~WSAEventLoop () override
 
bool init () 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}
 
WSAEventlistenEvent {nullptr}
 
void * wsaEvent {nullptr}
 
WSAEventConvert convert
 
unsigned long numbers = 0
 
unsigned long long sockets [MAX_EVENT_SIZE] {}
 
void * wsaEvents [MAX_EVENT_SIZE] {}
 
WSAEventevents [MAX_EVENT_SIZE] {}
 
- Protected 属性 继承自 sese::event::BaseEventLoop
bool handleClose = true
 指示当前循环是否处理关闭事件
 

详细描述

WSAEventSelect 事件循环

构造及析构函数说明

◆ ~WSAEventLoop()

sese::event::WSAEventLoop::~WSAEventLoop ( )
override

成员函数说明

◆ createEvent()

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

◆ dispatch()

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

实现了 sese::event::BaseEventLoop.

引用了 EVENT_ERROR.

◆ freeEvent()

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

◆ init()

◆ onAccept()

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

◆ onClose()

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

◆ onError()

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

◆ onRead()

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

◆ onWrite()

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

◆ setEvent()

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

实现了 sese::event::BaseEventLoop.

引用了 convert.

◆ setListenFd()

void sese::event::WSAEventLoop::setListenFd ( int fd)
overridevirtual

类成员变量说明

◆ convert

WSAEventConvert sese::event::WSAEventLoop::convert
protected

◆ events

WSAEvent* sese::event::WSAEventLoop::events[MAX_EVENT_SIZE] {}
protected

被这些函数引用 init().

◆ listenEvent

WSAEvent* sese::event::WSAEventLoop::listenEvent {nullptr}
protected

被这些函数引用 init().

◆ listenFd

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

被这些函数引用 init().

◆ numbers

unsigned long sese::event::WSAEventLoop::numbers = 0
protected

被这些函数引用 init().

◆ sockets

unsigned long long sese::event::WSAEventLoop::sockets[MAX_EVENT_SIZE] {}
protected

被这些函数引用 init().

◆ wsaEvent

void* sese::event::WSAEventLoop::wsaEvent {nullptr}
protected

被这些函数引用 init().

◆ wsaEvents

void* sese::event::WSAEventLoop::wsaEvents[MAX_EVENT_SIZE] {}
protected

被这些函数引用 init().


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