Sese Framework
2.3.0
A cross-platform framework
|
Basic network event loop interface. More...
#include <BaseEventLoop.h>
Public Member Functions | |
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 BaseEvent * | createEvent (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 Attributes | |
bool | handleClose = true |
Indicates whether the current loop is handling a close event. | |
Basic network event loop interface.
|
virtualdefault |
|
pure virtual |
Implemented in sese::event::EpollEventLoop, sese::event::KqueueEventLoop, and sese::event::WSAEventLoop.
|
pure virtual |
Implemented in sese::event::EpollEventLoop, sese::event::KqueueEventLoop, and sese::event::WSAEventLoop.
|
pure virtual |
Implemented in sese::event::EpollEventLoop, sese::event::KqueueEventLoop, and sese::event::WSAEventLoop.
|
pure virtual |
Implemented in sese::event::EpollEventLoop, sese::event::KqueueEventLoop, and sese::event::WSAEventLoop.
|
pure virtual |
Implemented in sese::event::EpollEventLoop, sese::event::KqueueEventLoop, and sese::event::WSAEventLoop.
|
pure virtual |
Implemented in sese::event::EpollEventLoop, sese::event::KqueueEventLoop, and sese::event::WSAEventLoop.
|
pure virtual |
Implemented in sese::event::EpollEventLoop, sese::event::KqueueEventLoop, and sese::event::WSAEventLoop.
|
pure virtual |
Implemented in sese::event::EpollEventLoop, sese::event::KqueueEventLoop, and sese::event::WSAEventLoop.
|
pure virtual |
Implemented in sese::event::EpollEventLoop, sese::event::KqueueEventLoop, and sese::event::WSAEventLoop.
|
pure virtual |
Implemented in sese::event::EpollEventLoop, sese::event::KqueueEventLoop, and sese::event::WSAEventLoop.
|
pure virtual |
Implemented in sese::event::EpollEventLoop, sese::event::KqueueEventLoop, and sese::event::WSAEventLoop.
|
protected |
Indicates whether the current loop is handling a close event.