Sese Framework
2.3.0
A cross-platform framework
|
WSAEventSelect event loop. More...
#include <WSAEventLoop.h>
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 |
BaseEvent * | createEvent (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} |
WSAEvent * | listenEvent {nullptr} |
void * | wsaEvent {nullptr} |
WSAEventConvert | convert |
unsigned long | numbers = 0 |
unsigned long long | sockets [MAX_EVENT_SIZE] {} |
void * | wsaEvents [MAX_EVENT_SIZE] {} |
WSAEvent * | events [MAX_EVENT_SIZE] {} |
Protected Attributes inherited from sese::event::BaseEventLoop | |
bool | handleClose = true |
Indicates whether the current loop is handling a close event. | |
WSAEventSelect event loop.
|
override |
|
overridevirtual |
Implements sese::event::BaseEventLoop.
References sese::event::BaseEvent::fd.
|
overridevirtual |
Implements sese::event::BaseEventLoop.
References EVENT_ERROR.
|
overridevirtual |
Implements sese::event::BaseEventLoop.
References sese::event::BaseEvent::fd.
|
overridevirtual |
Implements sese::event::BaseEventLoop.
References EVENT_ERROR, sese::event::BaseEvent::events, events, sese::event::BaseEvent::fd, listenEvent, listenFd, numbers, sockets, sese::event::WSAEvent::wsaEvent, wsaEvent, and wsaEvents.
|
overridevirtual |
Implements sese::event::BaseEventLoop.
|
overridevirtual |
Implements sese::event::BaseEventLoop.
|
overridevirtual |
Implements sese::event::BaseEventLoop.
|
overridevirtual |
Implements sese::event::BaseEventLoop.
|
overridevirtual |
Implements sese::event::BaseEventLoop.
|
overridevirtual |
Implements sese::event::BaseEventLoop.
|
overridevirtual |
Implements sese::event::BaseEventLoop.
|
protected |
|
protected |
Referenced by init().
|
protected |
Referenced by init().
|
protected |
Referenced by init().
|
protected |
Referenced by init().
|
protected |
Referenced by init().
|
protected |
Referenced by init().