Creates 64 SocketSets, each with its own thread -- performance should be close to windows IO completion ports. More...
#include <PooledSocketSet.h>
Public Member Functions | |
PooledSocketSet (int poolSize=1024/FD_SETSIZE) | |
virtual void | AddSocket (IStreamReadListenerPtr listener, TcpSocketPtr sp) |
virtual void | Close () |
virtual void | CloseAndDelete () |
virtual int | SocketCount () const |
virtual void | Broadcast (const Array< byte > &buf, const int len) |
virtual void | Join (int timeoutms) |
virtual void | Join () |
void | CheckMem () const |
void | ValidateMem () const |
Protected Member Functions | |
void | RemoveSocket (TcpSocket &sp) |
Protected Attributes | |
Vector< SocketSetPtr > | m_sets |
int | m_socketCount |
Mutex | m_setsMtx |
Creates 64 SocketSets, each with its own thread -- performance should be close to windows IO completion ports.
Definition at line 37 of file PooledSocketSet.h.