

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. | |
| ~IAllocateStreamSockets | ( | ) | [inline, protected] |
We never delete instances of this interface; you must manage the lifetime of the class that implements it.
| 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 >.
1.5.3