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

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

Inheritance diagram for IAllocateStreamSockets:
Collaboration diagram for IAllocateStreamSockets:

List of all members.


Detailed Description

An interface for allocating instances of IPoolableStreamSocket.

Public Member Functions

virtual
IPoolableStreamSocket
AllocateSocket (IPoolableSocketManager &manager, ISocketCallback &callback, SOCKET theSocket)=0
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

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

Constructor & Destructor Documentation

virtual ~IAllocateStreamSockets (  )  [protected, virtual]

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


Member Function Documentation

virtual IPoolableStreamSocket& AllocateSocket ( IPoolableSocketManager manager,
ISocketCallback callback,
SOCKET  theSocket 
) [pure virtual]

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


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