Public Member Functions | |
virtual void | OnSocketCreated ()=0 |
Called when a socket is created; a socket can be created only once. | |
virtual void | OnSocketAttached (JetByteTools::Core::IIndexedOpaqueUserData &userData)=0 |
Called when a socket is allocated, that is when a connection is initiated. A socket can be allocated multiple times, if, for example, the allocator pools sockets for reuse. Before a given socket can be allocated again it must have been released. | |
virtual void | OnSocketReleased (JetByteTools::Core::IIndexedOpaqueUserData &userData)=0 |
Called when a socket is released, that is when a connection no longer requires it and it returns to the allocator. A socket should be released as many times as it is allocated. | |
virtual void | OnSocketDestroyed ()=0 |
Called when a socket is destroyed; a socket can be destroyed only once. | |
Protected Member Functions | |
virtual | ~IMonitorSocketAllocation () |
We never delete instances of this interface; you must manage the lifetime of the class that implements it. |
virtual ~IMonitorSocketAllocation | ( | ) | [protected, virtual] |
We never delete instances of this interface; you must manage the lifetime of the class that implements it.
virtual void OnSocketCreated | ( | ) | [pure virtual] |
Called when a socket is created; a socket can be created only once.
Implemented in CNullSocketAllocationMonitor.
virtual void OnSocketAttached | ( | JetByteTools::Core::IIndexedOpaqueUserData & | userData | ) | [pure virtual] |
Called when a socket is allocated, that is when a connection is initiated. A socket can be allocated multiple times, if, for example, the allocator pools sockets for reuse. Before a given socket can be allocated again it must have been released.
Implemented in CNullSocketAllocationMonitor.
virtual void OnSocketReleased | ( | JetByteTools::Core::IIndexedOpaqueUserData & | userData | ) | [pure virtual] |
Called when a socket is released, that is when a connection no longer requires it and it returns to the allocator. A socket should be released as many times as it is allocated.
Implemented in CNullSocketAllocationMonitor.
virtual void OnSocketDestroyed | ( | ) | [pure virtual] |
Called when a socket is destroyed; a socket can be destroyed only once.
Implemented in CNullSocketAllocationMonitor.