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

# SCCSetTCPShutdownDelay

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

# SCC\_SetTCPShutdownDelay

[CAPL Functions](../../CAPLfunctions.md) » [Smart Charging](../CAPLFunctionsSmartChargingOverview.md) » [SCC Modeling Libraries (Simulation Setup)](../CAPLFunctionsSmartChargingOverview.md#BMNodeayerDLL) » [Simulation Control](../CAPLFunctionsSmartChargingOverview.md#SimulationControl) » [Shared Functions](../CAPLFunctionsSmartChargingOverview.md#SimulationControl) » SCC\_SetTCPShutdownDelay

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

## Function Syntax

```plaintext theme={null}
void SCC_SetTCPShutdownDelay ( dword DelayInMs )
```

## Description

Specifies the delay time between reaching the state **protocol finished** (e.g. because of SessionStop or a timeout / error) and the closure of the TCP connection with ACK FIN.

## Parameters

* **DelayInMs**

  | Value | Behavior                                   |
  | ----- | ------------------------------------------ |
  | 0     | Close immediately.                         |
  | >0    | Close after the specified time has passed. |

## Return Values

—

## Example

—
