> ## 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.

# CAPLfunctionDoIPTlsHandshakeCompleted

# \_DoIP\_TlsHandshakeCompleted

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

**Note**\
The following DoIP CAPL function is only available with the modeling library **DoIP.dll** and eventually an appropriate implementation of the CAPL Callback Interface. Information about the DoIP DLL and the CAPL Callback Interface you find here:

* [DoIP CAPL Introduction](../CAPLDiagnosticDoIP.md)
* [AN-IND-1-012\_CAPL\_Callback\_Interface.pdf](javascript:startDemoLoader\('AN-IND-1-012_CAPL_Callback_Interface.pdf'\))
* [AN-IND-1-026\_DoIP\_in\_CANoe.pdf](javascript:startDemoLoader\('AN-IND-1-026_DoIP_in_CANoe.pdf'\))

## Function Syntax

```plaintext theme={null}
void _DoIP_TlsHandshakeCompleted (dword handshakeResult);
```

## Description

The callback function is called when a **TLS** handshake is completed for the DoIP connection.

## Parameters

* **handshakeResult**\
  TLS handshake result. If the operation completed successfully the value is zero. Otherwise, the value is an error code.

## Return Values

—

## Example

```plaintext theme={null}
void _DoIP_TlsHandshakeCompleted(dword handshakeResult)
{
  write( "[%.3f] TLS handshake completed with result '%i'", timenow()/100000.0, handshakeResult);
}
```
