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

kqueue event loop More...

#include <KqueueEventLoop.h>

Inheritance diagram for sese::event::KqueueEventLoop:
sese::event::BaseEventLoop

Public Member Functions

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

Protected Attributes

int listenFd {-1}
 
BaseEventlistenEvent {nullptr}
 
int kqueue {-1}
 
- Protected Attributes inherited from sese::event::BaseEventLoop
bool handleClose = true
 Indicates whether the current loop is handling a close event.
 

Detailed Description

kqueue event loop

Constructor & Destructor Documentation

◆ ~KqueueEventLoop()

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

References close().

Member Function Documentation

◆ 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

Implements sese::event::BaseEventLoop.

References listenFd.

Member Data Documentation

◆ kqueue

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

Referenced by init().

◆ listenEvent

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

Referenced by init().

◆ listenFd

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

Referenced by init(), and setListenFd().


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