OpenDOF Project
boolean DOF_SetConnectionLimit ( DOF  self,
uint32  max 
)

Changes the maximum number of simultaneous connections the DOF supports.

The value is originally set by using the default configuration or the DOFConfigBuilder_SetConnectionLimit function. Use this function to change the original value.

Because this is a runtime change, the number of currently established connections may already exceed the value you set in this function. If this occurs, it will not cause the node to drop any existing connections; however, the node will be unable to initiate or accept any new connections until the total number of connections drops below the new maximum.

See the DOFConfigBuilder function for more information.

Parameters
selfThe DOF whose maximum number of connections will be changed. This must not be NULL.
maxThe maximum number of connections. A value of zero will prevent all connections.
Return values
TRUEif the maximum number of connections was set.
Exceptions
FALSEis returned if the function fails to set the maximum number of connections.
See Also
DOFConfigBuilder_Create
DOFConfigBuilder_SetConnectionLimit
core-c-dof-oal Version 8.0.1 Build 0
2018-01-22