28 #ifndef __CASOCKETGOROPEPOLL__
29 #define __CASOCKETGOROPEPOLL__
70 if (datapointer != NULL)
80 ret=E_ALREADY_CONTAINED;
84 CAMsg::printMsg(LOG_DEBUG,
"Failed to add socket %i to epoll group --- errno: %i\n", socket, err);
#define ASSERT(cond, msg)
static SINT32 printMsg(UINT32 typ, const char *format,...)
Writes a given message to the log.
SINT32 add(CAMuxSocket &s)
Adds the socket s to the socket group.
bool isSignaled(CAMuxSocket &s)
SINT32 remove(CAMuxSocket &s)
SINT32 remove(CASocket &s)
CASocketGroupEpoll(bool bWrite)
bool isSignaled(CASocket &s)
bool isSignaled(void *datapointer)
SINT32 add(CASocket &s, void *datapointer)
SINT32 add(CAMuxSocket &s, void *datapointer)
Adds the socket s to the socket group.
struct epoll_event * m_pEvents
struct epoll_event * m_pEpollEvent
SINT32 select(UINT32 time_ms)
Waits for events on the sockets.
bool isSignaled(CASocket *ps)
SINT32 m_iAktSignaledSocket
SINT32 setPoolForWrite(bool bWrite)
SINT32 add(CASocket &s)
Adds the socket s to the socket group.
void * getFirstSignaledSocketData()
void * getNextSignaledSocketData()
SOCKET getSocket()
Returns the number of the Socket used.