typedef qByte(* nn::nex::PromotionReferee::ValidateAffinityCallback)(DOHandle hObject, DOHandle hCalleeStation, qByte byAffinity);
The typedef
for ValidateAffinityCallback
.
The default levels of affinity are: 100 for server processes, 50 for client processes, and 0 for tool processes. The session master gets additional 10 points as a bonus. Unknown processes are treated as client processes by default. Accordingly, server processes have precedence over client processes and tool processes as the location where objects will be migrated. If PromotionReferee
is called by a number of processes that have the same type, the station that called PromotionReferee
first gets selected as the new duplication master.
Note: This method is applied to user duplicated objects that are not well-known objects.
CONFIDENTIAL