The C++ framework for developing highly scalable, high performance servers on Windows platforms.

CNullSocketAllocationMonitor Class Reference
[Null ObjectsMonitoringSockets utility code]

Inheritance diagram for CNullSocketAllocationMonitor:
Collaboration diagram for CNullSocketAllocationMonitor:

List of all members.


Detailed Description

An object that implements IMonitorSocketAllocation and does nothing.

Public Member Functions

void OnSocketCreated () override
 Called when a socket is created; a socket can be created only once.
void OnSocketAttached (JetByteTools::Core::IIndexedOpaqueUserData &) override
 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.
void OnSocketReleased (JetByteTools::Core::IIndexedOpaqueUserData &) override
 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.
void OnSocketDestroyed () override
 Called when a socket is destroyed; a socket can be destroyed only once.

Member Function Documentation

void OnSocketCreated (  )  [inline, override, virtual]

Called when a socket is created; a socket can be created only once.

Implements IMonitorSocketAllocation.

void OnSocketAttached ( JetByteTools::Core::IIndexedOpaqueUserData userData  )  [inline, override, 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.

Implements IMonitorSocketAllocation.

void OnSocketReleased ( JetByteTools::Core::IIndexedOpaqueUserData userData  )  [inline, override, 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.

Implements IMonitorSocketAllocation.

void OnSocketDestroyed (  )  [inline, override, virtual]

Called when a socket is destroyed; a socket can be destroyed only once.

Implements IMonitorSocketAllocation.


Generated on Sun Sep 12 19:10:34 2021 for The Server Framework - v7.4 by doxygen 1.5.3