Skip to main contentSomeIpSetProviderEndpoints
Valid for: 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).
- 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
Example
—