OpenDOF Project
boolean DOFConfigBuilder_SetRank ( DOFConfigBuilder  self,
uint8  rank 
)

Sets the node's desire to manage a secure multicast group.

The rank is a number from zero to 255. The higher the number, the stronger the desire to be a manager. Nodes with plentiful resources typically are better candidates for group manager and should have a higher rank. Nodes with limited resources should have a lower rank.

The default node rank is 128.

Parameters
selfThe DOFConfigBuilder to set the rank in. This must not be NULL.
rankThe DOF's rank.
Returns
TRUE if the rank was set in the DOFConfigBuilder.
Exceptions
FALSEif the rank could not be set. The DOFConfigBuilder remains unchanged.
See Also
DOFCONNECTIONTYPE_GROUP
DOFState_GetRank
DOFConfig_GetRank
core-c-dof-oal Version 8.0.1 Build 0
2018-01-22