TDME2 1.9.121
|
Interface to kernel event mechanismns. More...
#include <tdme/os/network/KernelEventMechanism.h>
Public Member Functions | |
KernelEventMechanism () | |
Public constructor. More... | |
~KernelEventMechanism () | |
destructor More... | |
void | initKernelEventMechanism (const unsigned int maxCCU) |
initializes the kernel event mechanism More... | |
void | shutdownKernelEventMechanism () |
shutdowns the kernel event mechanism More... | |
int | doKernelEventMechanism () |
do the kernel event mechanism More... | |
void | decodeKernelEvent (const unsigned int index, NIOInterest &interest, void *&cookie) |
decodes a kernel event More... | |
void | setSocketInterest (const NetworkSocket &socket, const NIOInterest lastInterest, const NIOInterest interest, const void *cookie) |
sets a non blocked socket io interest More... | |
Private Attributes | |
bool | initialized |
void * | _psd |
Interface to kernel event mechanismns.
Definition at line 17 of file KernelEventMechanism.h.
Public constructor.
tdme::os::network::NetworkKEMException |
Definition at line 31 of file KernelEventMechanism.cpp.
~KernelEventMechanism | ( | ) |
destructor
Definition at line 36 of file KernelEventMechanism.cpp.
void decodeKernelEvent | ( | const unsigned int | index, |
NIOInterest & | interest, | ||
void *& | cookie | ||
) |
decodes a kernel event
index | kernel event index |
&interest | kernel event io interest |
cookie | kernel event cookie |
tdme::os::network::NetworkKEMException |
Definition at line 230 of file KernelEventMechanism.cpp.
int doKernelEventMechanism | ( | ) |
do the kernel event mechanism
tdme::os::network::NetworkKEMException |
Definition at line 177 of file KernelEventMechanism.cpp.
void initKernelEventMechanism | ( | const unsigned int | maxCCU | ) |
initializes the kernel event mechanism
maxCCU | supported max ccu |
tdme::os::network::NetworkKEMException |
Definition at line 115 of file KernelEventMechanism.cpp.
void setSocketInterest | ( | const NetworkSocket & | socket, |
const NIOInterest | lastInterest, | ||
const NIOInterest | interest, | ||
const void * | cookie | ||
) |
sets a non blocked socket io interest
&socket | socket |
lastInterest | last nio interest |
interest | nio interest |
cookie | cookie |
tdme::os::network::NetworkKEMException |
Definition at line 41 of file KernelEventMechanism.cpp.
void shutdownKernelEventMechanism | ( | ) |
shutdowns the kernel event mechanism
Definition at line 162 of file KernelEventMechanism.cpp.
|
private |
Definition at line 73 of file KernelEventMechanism.h.
|
private |
Definition at line 70 of file KernelEventMechanism.h.