The m_nMaxClients data member is a public variable that
specifies the maximum number of clients that are permitted to establish
a connection with the server. After this limit is reached, the server
will reject additional connections until the number of active clients
drops below this threshold. A value of zero specifies that there is no
fixed limit on the active number of client connections. Changing the
value of this data member does not have an effect on an active instance
of the server. To change the maximum number of clients on an active
server, use the Throttle method.
The actual number of client connections that can be accepted
depends on the amount of memory available to the server process.
Sockets are allocated from the non-paged memory pool, so the actual
number of sockets that can be created system-wide depends on the
amount of physical memory that is installed. If the server will be
accessible over the Internet, it is recommended that you limit the
maximum number of client connections to a reasonable value.