SDSetAddress
Syntax
long SD_SetAddress(serviceConsumerRef * consumer, addressHandle address, serviceConsumerRef * simulatedEndpoint)
long SD_SetAddress(serviceConsumerRef * consumer, addressHandle address, serviceProviderRef * simulatedEndpoint)
long SD_SetAddress(serviceProviderRef * provider, addressHandle address, serviceConsumerRef * simulatedEndpoint)
long SD_SetAddress(serviceProviderRef * provider, addressHandle address, serviceProviderRef * simulatedEndpoint)
Function
Sets the address for an endpoint, normally after it has been added dynamically to a service. The address can be created with binding specific functions. The third parameter is the simulated endpoint where the new endpoint has been discovered and where the address for the new endpoint is now known.
Parameters
consumer Consumer endpoint of which the address shall be set.
provider
Provider endpoint of which the address shall be set.
address
Address for the endpoint.
simulatedEndpoint
Endpoint from which the function is called.
Return Values
0: Success
1: The service does not allow dynamic endpoint changes
< 0: Other error, e.g. variable not initialized
SD_SetAddress(newProvider, Abstract_CreateAddress(MirrorAdjustment, "RearMirror"), MirrorAdjustment[CANoe]);
Abstract_CreateAddress | SD_AddProvider | SD_AddConsumer