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

IAllocatePoolableSockets Class Reference
[Socket allocatorsInterfacesProtected destructors on abstract base classes]

Inheritance diagram for IAllocatePoolableSockets:
Collaboration diagram for IAllocatePoolableSockets:

List of all members.


Detailed Description

An interface for managing IPoolableSocket.

Public Member Functions

virtual void ReleaseSocket (IPoolableSocket &socket)=0
 Returns the socket to the manager, the manager can pool sockets for later reuse.
virtual DWORD AbortMyConnections (const IPoolableSocketManager &manager, ConnectionClosureReason reason)=0
 Aborts all active sockets that are managed by the supplied manager and returns the number of active sockets that were aborted.
virtual void DumpMyConnections (const IPoolableSocketManager &manager) const =0
virtual bool ReleaseSockets ()=0
virtual
IIndexedOpaqueUserData::UserDataIndex 
RequestUserDataSlot (const _tstring &name)=0
 Request a named user data slot and get an index to use in calls to methods on IIndexedOpaqueUserData.
virtual
IIndexedOpaqueUserData::UserDataIndex 
LockUserDataSlots ()=0
 Prevent more user data slots from being allocated. Returns the number of user data slots that have been allocated.

Protected Member Functions

 ~IAllocatePoolableSockets () override
 We never delete instances of this interface; you must manage the lifetime of the class that implements it.

Constructor & Destructor Documentation

~IAllocatePoolableSockets (  )  [override, protected]

We never delete instances of this interface; you must manage the lifetime of the class that implements it.


Member Function Documentation

virtual DWORD AbortMyConnections ( const IPoolableSocketManager manager,
ConnectionClosureReason  reason 
) [pure virtual]


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