Server properties

Two Open Server properties, SRV_S_NUMLISTENERS and SRV_S_MAXLISTENERS, support dynamic listeners.

Table 13: Server properties

Property name

Definition

Notes

SRV_S_MAXLISTENERS

Limits the maximum number of listener threads.

The default value is CS_MAX_NOMAX. This value is used only when trying to create a new listener thread. Setting this property to a value smaller than the current value of SRV_S_NUMLISTENERS does not cause any listeners to fail.

SRV_S_NUMLISTENERS

Returns the number of SRV_PROC control structures involved in listening for client connections.

This is a retrieve-only property.