47 memset((
void*)m_pollfd,0,
sizeof(
struct pollfd)*
MAX_POLLFD);
71 m_pollfd[i].events=POLLOUT;
73 m_pollfd[i].events=POLLIN;
84 #pragma warning( push )
85 #pragma warning( disable : 4127 )
101 #pragma warning( push )
102 #pragma warning( disable : 4127 )
104 #pragma warning (pop)
107 m_pollfd[sock].fd=-1;
140 SINT32 ret=::poll((
struct pollfd*)m_pollfd,
m_max,-1);
162 ti.tv_usec=time_ms*1000;
177 ret=::poll((
struct pollfd*)m_pollfd,
m_max,time_ms);
static SINT32 printMsg(UINT32 typ, const char *format,...)
Writes a given message to the log.
SINT32 setPoolForWrite(bool bWrite)
SINT32 remove(CASocket &s)
CASocketGroup(bool bWrite)
SOCKET getSocket()
Returns the number of the Socket used.