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

# CAPLfunctionSCCStopSession

[Open topic with navigation](../../../../../CANoeDEFamily.htm#Topics/CAPLFunctions/SmartCharging/Functions/CAPLfunctionSCCStopSession.md)

## SCC\_StopSession

**CAPL Functions** » [Smart Charging](../CAPLFunctionsSmartChargingOverview.md) » [SCC Modeling Libraries (Simulation Setup)](../CAPLFunctionsSmartChargingOverview.md#BMNodeayerDLL) » [V2G Simulation Control](../CAPLFunctionsSmartChargingOverview.md#V2GSimControl) » [EVSE Functions](../CAPLFunctionsSmartChargingOverview.md#V2GSimControlEVSE) » SCC\_StopSession

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

### Function Syntax

```plaintext theme={null}
long SCC_StopSession ( dword CloseTcpConnection ) // form 1
long SCC_StopSession ( dword CloseTcpConnection, dword CloseDataLink ) // form 2
```

### Description

The function stops a connection immediately. If it is used within a message callback, a response to the message is not sent.

### Parameters

* **CloseTcpConnection**: If 1, an additional TCP close is executed
* **CloseDataLink**: If 1, an additional data link close via CM\_SetKey.Req is executed. This is the default behavior for CloseTcpConnection == 1

### Return Values

* **0**: Not successful
* **1**: Successful

### Example

—
