---
title: "ecnDisabled(_:)"
framework: network
role: symbol
role_heading: Instance Method
path: "network/tcp/ecndisabled(_:)"
---

# ecnDisabled(_:)

Disable ECN negotiation.

## Declaration

```swift
func ecnDisabled(_ disableECN: Bool) -> TCP
```

## Parameters

- `disableECN`: True to disable ECN, false otherwise.
