# TcpKeepAlive

`import { TcpKeepAlive } from "destack:net/binding";`

TCP keepalive settings.

```ds title="TcpKeepAlive"
export struct TcpKeepAlive {
    isEnabled: boolean;
    idleMilliseconds: uint32;
    intervalMilliseconds: uint32;
    probeCount: uint32;
}
```

[language/library/src/net/binding/options.ds:13:22](https://github.com/destack-sh/destack/blob/main/language/library/src/net/binding/options.ds#L13-L22)

## Members

### `isEnabled: boolean`

Whether keepalive probes are enabled.

### `idleMilliseconds: uint32`

Idle time before probes begin, in milliseconds.

### `intervalMilliseconds: uint32`

Interval between probes, in milliseconds.

### `probeCount: uint32`

Number of failed probes before timeout.
