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. |
~IAllocatePoolableSockets | ( | ) | [override, protected] |
We never delete instances of this interface; you must manage the lifetime of the class that implements it.
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 DWORD AbortMyConnections | ( | const IPoolableSocketManager & | manager, | |
ConnectionClosureReason | reason | |||
) | [pure virtual] |
Aborts all active sockets that are managed by the supplied manager and returns the number of active sockets that were aborted.
Implemented in TSocketAllocator< JetByteTools::Socket::IAllocateDatagramSockets >, TSocketAllocator< JetByteTools::Socket::IAllocateStreamSockets >, TSocketAllocator< JetByteTools::Socket::IAllocateSequencedStreamSockets >, and TSocketAllocator< JetByteTools::Socket::IAllocateDatagramServerSockets >.
virtual void DumpMyConnections | ( | const IPoolableSocketManager & | manager | ) | const [pure virtual] |
Implemented in TSocketAllocator< JetByteTools::Socket::IAllocateDatagramSockets >, TSocketAllocator< JetByteTools::Socket::IAllocateStreamSockets >, TSocketAllocator< JetByteTools::Socket::IAllocateSequencedStreamSockets >, and TSocketAllocator< JetByteTools::Socket::IAllocateDatagramServerSockets >.
virtual bool 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, TDatagramFilteringHelper, CFilteringStreamSocketConnectionManagerBase, TDatagramFilteringHelper< JetByteTools::Socket::IDatagramSocketConnectionManagerCallback, JetByteTools::Socket::IDatagramSocketConnectionManagerIO, JetByteTools::Socket::IDatagramSocketEx >, 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, TDatagramFilteringHelper, CFilteringStreamSocketConnectionManagerBase, TDatagramFilteringHelper< JetByteTools::Socket::IDatagramSocketConnectionManagerCallback, JetByteTools::Socket::IDatagramSocketConnectionManagerIO, JetByteTools::Socket::IDatagramSocketEx >, TSocketAllocator< JetByteTools::Socket::IAllocateDatagramSockets >, TSocketAllocator< JetByteTools::Socket::IAllocateStreamSockets >, TSocketAllocator< JetByteTools::Socket::IAllocateSequencedStreamSockets >, and TSocketAllocator< JetByteTools::Socket::IAllocateDatagramServerSockets >.