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

Inheritance diagram for IAllocatePoolableSockets:

Inheritance graph
[legend]
Collaboration diagram for IAllocatePoolableSockets:

Collaboration graph
[legend]

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 void AbortMyConnections (const IPoolableSocketManager &manager)=0
 Closes all active sockets that are managed by the supplied manager.
virtual void 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 ()
 We never delete instances of this interface; you must manage the lifetime of the class that implements it.

Constructor & Destructor Documentation

~IAllocatePoolableSockets (  )  [inline, protected]

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


Member Function Documentation

virtual void ReleaseSocket ( IPoolableSocket socket  )  [pure virtual]

Returns the socket to the manager, the manager can pool sockets for later reuse.

Implemented in TSocketAllocator< JetByteTools::Socket::IAllocateDatagramSockets >, TSocketAllocator< JetByteTools::Socket::IAllocateStreamSockets >, TSocketAllocator< JetByteTools::Socket::IAllocateSequencedStreamSockets >, and TSocketAllocator< JetByteTools::Socket::IAllocateDatagramServerSockets >.

virtual void AbortMyConnections ( const IPoolableSocketManager manager  )  [pure virtual]

Closes all active sockets that are managed by the supplied manager.

Implemented in TSocketAllocator< JetByteTools::Socket::IAllocateDatagramSockets >, TSocketAllocator< JetByteTools::Socket::IAllocateStreamSockets >, TSocketAllocator< JetByteTools::Socket::IAllocateSequencedStreamSockets >, and TSocketAllocator< JetByteTools::Socket::IAllocateDatagramServerSockets >.

virtual void ReleaseSockets (  )  [pure virtual]

Implemented in TSocketAllocator< JetByteTools::Socket::IAllocateDatagramSockets >, TSocketAllocator< JetByteTools::Socket::IAllocateStreamSockets >, TSocketAllocator< JetByteTools::Socket::IAllocateSequencedStreamSockets >, and TSocketAllocator< JetByteTools::Socket::IAllocateDatagramServerSockets >.

virtual IIndexedOpaqueUserData::UserDataIndex RequestUserDataSlot ( const _tstring name  )  [pure virtual, inherited]

Request a named user data slot and get an index to use in calls to methods on IIndexedOpaqueUserData.

Implemented in CBufferAllocator, CLockFreeBufferAllocator, TSocketAllocator< JetByteTools::Socket::IAllocateDatagramSockets >, TSocketAllocator< JetByteTools::Socket::IAllocateStreamSockets >, TSocketAllocator< JetByteTools::Socket::IAllocateSequencedStreamSockets >, and TSocketAllocator< JetByteTools::Socket::IAllocateDatagramServerSockets >.

virtual IIndexedOpaqueUserData::UserDataIndex LockUserDataSlots (  )  [pure virtual, inherited]

Prevent more user data slots from being allocated. Returns the number of user data slots that have been allocated.

Implemented in CBufferAllocator, CLockFreeBufferAllocator, TSocketAllocator< JetByteTools::Socket::IAllocateDatagramSockets >, TSocketAllocator< JetByteTools::Socket::IAllocateStreamSockets >, TSocketAllocator< JetByteTools::Socket::IAllocateSequencedStreamSockets >, and TSocketAllocator< JetByteTools::Socket::IAllocateDatagramServerSockets >.


Generated on Thu Mar 26 16:39:57 2009 for JetByte Socket Tools - v6.0 by  doxygen 1.5.3