> ## Documentation Index
> Fetch the complete documentation index at: https://notevil.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CAPLfunctionSDConnectAsync

# SD\_ConnectAsync (obsolete)

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

## Function Syntax

```c theme={null}
void SD_ConnectAsync(providedServiceRef * providedService); // form 1
void SD_ConnectAsync(consumedServiceRef * consumedService); // form 2
```

## Description

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 an [on SD\_connection\_established](../EventProcedures/CAPLfunctionOnSDConnectionEstablished.md) (or [on SD\_connection\_failed](../EventProcedures/CAPLfunctionOnSDConnectionFailed.md)) 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 internal CANoe model for simulated endpoints which handles the protocol.

## Parameters

* **providedService**: Endpoints, from provider side.
* **consumedService**: Endpoints, from consumer side.

## Return Values

—

## Example

```c theme={null}
SD_ConnectAsync(consumedService);
```

[Programming with the Communication Concept (C#, Python and CAPL)](../../../CANoeCANalyzer/CommunicationConcept/Programming/CCP.md) • [SD\_Disconnect](CAPLfunctionSDDisconnect.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.