# null

# SomeIpSetProviderEndpoints

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

## Function Syntax

* `long SomeIpSetProviderEndpoints(dword csiHandle, dword remoteIPv4Address, dword remoteUDPPort, dword remoteTCPPort); // form 1`
* `long SomeIpSetProviderEndpoints(dword csiHandle, byte remoteIPv6Address[], dword remoteUDPPort, dword remoteTCPPort); // form 2`
* `long SomeIpSetProviderEndpoints(dword csiHandle, IP_Endpoint remoteIPEndpoint); // form 3`

## Description

Sets the UDP and TCP endpoint that is used for the consumed service instance to reach the corresponding provided service instance.

## Parameters

* **csiHandle**: Consumed service instance handle (may be retrieved by [SomeIpGetConsumedObjectHandle](CAPLfunctionSomeIpGetConsumedObjectHandle.md)).
* **remoteIPv4Address**: IPv4 address of the provider. In network byte order.
* **remoteIPv6Address**: IPv6 address of the provider.
* **remoteUDPPort**: An UDP port number of the provider or zero if there is none.
* **remoteTCPPort**: A TCP port number of the provider or zero if there is none.
* **remoteIPEndpoint**: Object of type **IP\_Endpoint** that contains the address/port of the provider. 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

—
