The C++ framework for developing highly scalable, high performance servers on Windows platforms.

CStreamSocketConnectionCollection Class Reference

Inheritance diagram for CStreamSocketConnectionCollection:
Collaboration diagram for CStreamSocketConnectionCollection:

List of all members.

Public Types

typedef ULONG_PTR ConnectionId

Public Member Functions

 CStreamSocketConnectionCollection ()
 CStreamSocketConnectionCollection (const CStreamSocketConnectionCollection &rhs)
virtual ~CStreamSocketConnectionCollection ()
CStreamSocketConnectionCollectionoperator= (const CStreamSocketConnectionCollection &rhs)
bool IsEmpty () const
ConnectionId AddConnection (IStreamSocket &socket)
ConnectionId GetConnectionId (const IStreamSocket &socket) const
CSmartStreamSocket GetConnection (ConnectionId id) const
void RemoveConnection (const IStreamSocket &socket)
bool RemoveConnectionIfPresent (const IStreamSocket &socket)
void RemoveConnection (ConnectionId id)
bool RemoveConnectionIfPresent (ConnectionId id)

Static Public Attributes

InvalidConnectionId = 0

Protected Types

typedef std::map
< ConnectionId,
IStreamSocket * > 

Protected Attributes

JetByteTools::Core::CSingleWriterMultipleReaderLock m_readerWriterLock
ConnectionMap m_connectionMap

Member Typedef Documentation

typedef std::map<ConnectionId, IStreamSocket *> ConnectionMap [protected]

Constructor & Destructor Documentation

Member Function Documentation

bool IsEmpty (  )  const

CStreamSocketConnectionCollection::ConnectionId GetConnectionId ( const IStreamSocket socket  )  const

CSmartStreamSocket GetConnection ( ConnectionId  id  )  const

void RemoveConnection ( const IStreamSocket socket  ) 

bool RemoveConnectionIfPresent ( const IStreamSocket socket  ) 

void RemoveConnection ( ConnectionId  id  ) 

bool RemoveConnectionIfPresent ( ConnectionId  id  ) 

Member Data Documentation

JETBYTE_CONSTEXPR ConnectionId InvalidConnectionId = 0 [static]

JetByteTools::Core::CSingleWriterMultipleReaderLock m_readerWriterLock [mutable, protected]

Generated on Sun Sep 12 19:10:39 2021 for The Server Framework - v7.4 by doxygen 1.5.3