CAPL Script

SDConnectAsync

Syntax

void SD_ConnectAsync(providedServiceRef * providedService)

void SD_ConnectAsync(consumedServiceRef * consumedService)

Function

Requests that a connection will be established between a service provider and a service consumer. The connection will be established asynchronously, i.e. after the call it will in the general case not be available immediately. You can react to the establishment of the connection with anon SD_connection_established(oron SD_connection_failed) handler. You can call the function from both the provider and the consumer side. Note that you need this function only when you implement service discovery yourself. In most cases, there’s an internalCANoemodel for simulated endpoints which handles the protocol.

Parameters

providedService Endpoints, from provider side.

consumedService

Endpoints, from consumer side.

Return Values

SD_ConnectAsync(consumedService);

SD_Disconnect