GetNrOfCOReceivers
Syntax
dword GetNrOfCOReceivers(communicationObject co)
Function
Returns the current number of receiver endpoints at a signal or PDU communication object. Note the number of endpoints may vary over time for some objects. The function is particularly useful to iterate over all receivers.
Parameters
co Communication object
Return Values
The current number of receiver endpoints.
for (i = 0; i < GetNrOfCOReceivers(MirrorState); ++i){MirrorState.receiverSide[i].ResetValueState();// ...}
[GetNrOfCOConsumers](/en/syntax/communication-objects/misc/getnrofcoconsumers) | [GetNrOfCOProviders](/en/syntax/communication-objects/misc/getnrofcoproviders) | [GetNrOfCOSenders](/en/syntax/communication-objects/math/getnrofcosenders)