GetNrOfCOSenders
This reference collection includes Vector documentation reproduced with permission. Snippets may require configuration-specific symbols and are not all standalone programs. Sources and validation limits.
Syntax
dword GetNrOfCOSenders(communicationObject co)
Function
Returns the current number of sender 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 senders.
Parameters
co Communication object
Return Values
The current number of sender endpoints.
Reference example from the CANoe 12 help. This is an incomplete context fragment: omitted surrounding code is shown as comments. Do not paste it as a complete program.
for (i = 0; i < GetNrOfCOSenders(MirrorState); ++i)
{
MirrorState.senderSide[i].ResetValueState();
// // ... surrounding context omitted
}
Related APIs
GetNrOfCOConsumers | GetNrOfCOProviders | GetNrOfCOReceivers