# null

# SomeIpSetMulticastReceiverEndpoints

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

## Function Syntax

* `long SomeIpSetMulticastReceiverEndpoints(dword cevgHandle, dword multicastIPv4Address, dword udpPort); // form 1`
* `long SomeIpSetMulticastReceiverEndpoints(dword cevgHandle, byte multicastIPv6Address[], dword udpPort); // form 2`
* `long SomeIpSetMulticastReceiverEndpoints(dword cevgHandle, IP_Endpoint multicastIPEndpoint); // form 3`

## Description

Sets the multicast endpoint that is used for the consumed event group to receive field/event notification per multicast.

## Parameters

* **cevgHandle**: Consumed event group handle (may be retrieved by [SomeIpGetConsumedObjectHandle](CAPLfunctionSomeIpGetConsumedObjectHandle.md))
* **multicastIPv4Address**: Multicast IPv4 address receiving the events/fields. In network byte order.
* **multicastIPv6Address**: Multicast IPv6 address receiving the events/fields.
* **udpPort**: An UDP port number receiving the events/fields. May be zero if the events/fields shall not be received by multicast anymore.
* **multicastIPEndpoint**: Object of type **IP\_Endpoint** that contains the address/port of the multicast endpoint. An **IP\_Endpoint** with port number zero may be passed to delete a previously set **IP\_Endpoint**.

## Return Values

* **0**: The function was successfully executed
* **>0**: [Error code](../../CAPLfunctionsSOMEIPILErrorCodes.md)

## Example

—
