> ## Documentation Index
> Fetch the complete documentation index at: https://notevil.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CAPLfunctionGetNrOfCOSenders

# GetNrOfCOSenders (obsolete)

[Valid for](../../../Shared/FeatureAvailability.md): CANoe DE

## Function Syntax

```
dword GetNrOfCOSenders(communicationObject co);
```

## Description

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.

## Example

```c theme={null}
for (i = 0; i < GetNrOfCOSenders(MirrorState); ++i)
{
  MirrorState.senderSide[i].ResetValueState();
  // ...
}
```

[Programming with the Communication Concept (C#, Python and CAPL)](../../../CANoeCANalyzer/CommunicationConcept/Programming/CCP.md) • [GetNrOfCOConsumers](CAPLfunctionGetNrOfCOConsumers.md) • [GetNrOfCOProviders](CAPLfunctionGetNrOfCOProviders.md) • [GetNrOfCOReceivers](CAPLfunctionGetNrOfCOReceivers.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.