Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
sese::event::WSAEventLoop Class Reference

WSAEventSelect event loop. More...

#include <WSAEventLoop.h>

Inheritance diagram for sese::event::WSAEventLoop:
sese::event::BaseEventLoop

Public Member Functions

 ~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 Member Functions inherited from sese::event::BaseEventLoop
virtual ~BaseEventLoop ()=default
 

Protected Attributes

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 Attributes inherited from sese::event::BaseEventLoop
bool handleClose = true
 Indicates whether the current loop is handling a close event.
 

Detailed Description

WSAEventSelect event loop.

Constructor & Destructor Documentation

◆ ~WSAEventLoop()

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

Member Function Documentation

◆ 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

Implements sese::event::BaseEventLoop.

References 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

◆ setListenFd()

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

Member Data Documentation

◆ convert

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

◆ events

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

Referenced by init().

◆ listenEvent

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

Referenced by init().

◆ listenFd

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

Referenced by init().

◆ numbers

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

Referenced by init().

◆ sockets

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

Referenced by init().

◆ wsaEvent

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

Referenced by init().

◆ wsaEvents

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

Referenced by init().


The documentation for this class was generated from the following files: