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

Inheritance diagram for IAllocateStreamSockets:

Inheritance graph
[legend]
Collaboration diagram for IAllocateStreamSockets:

Collaboration graph
[legend]

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 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

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

Constructor & Destructor Documentation

~IAllocateStreamSockets (  )  [inline, protected]

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 void ReleaseSocket ( IPoolableSocket socket  )  [pure virtual, inherited]

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, inherited]

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, inherited]

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:58 2009 for JetByte Socket Tools - v6.0 by  doxygen 1.5.3