C4 Engine
C4 Engine API Documentation

NetworkMgr::SetMaxConnectionCount

Defined in:  C4Network.h
Sets the maximum number of connections that the Network Manager will allow at one time.
Prototype

void SetMaxConnectionCount(int32 max);

Parameters
max The maximum number of connections.
Description
The number passed to the SetMaxConnectionCount function represents the limit on the number of connections that the Network Manager will accept from remote machines. This limit has no effect on the ability to make outgoing connections. If the total number of connections equals or exceeds the maximum number given by the max parameter, then connections initiated remotely are denied, but connections initiated locally are still possible.

The Message Manager automatically calls SetMaxConnectionCount from within the MessageMgr::BeginMultiplayerGame function. The maximum number of connections set by the Message Manager is one less than the maximum number of players set by the MessageMgr::SetMaxPlayerCount function.
See Also

NetworkMgr::GetMaxConnectionCount

NetworkMgr::GetConnectionCount

MessageMgr::GetMaxPlayerCount

MessageMgr::SetMaxPlayerCount

MessageMgr::BeginMultiplayerGame