![]() |
• Network Manager |
|
API Links
Developer Links
|
NetworkMgr::GetConnectionCountDefined in:
Returns returns the number of connections which are currently established.
C4Network.hPrototype
Description
The GetConnectionCount function returns the total number of connections which are currently established, including those which were initiated by the local machine and those which were initiated by remote machines. The number of connections initiated remotely which are accepted by the local machine can be limited by calling NetworkMgr::SetMaxConnectionCount.It may be useful to poll the GetConnectionCount function after disconnecting from remote machines, but before terminating the Network Manager. When GetConnectionCount returns zero, all connections have been terminated in an orderly fashion, and it is safe to call NetworkMgr::Terminate.
See Also
|