# otPlatTcpConnection


`#include <openthread/platform/tcp.h>`

Represents a TCP connection.

## Summary

The OpenThread core owns and manages the `https://openthread.io/reference/struct/ot-plat-tcp-connection` instances. The platform should track the pointers to these instances and pass them when invoking the `otPlatTcpHandle*` callbacks. The `https://openthread.io/reference/struct/ot-plat-tcp-connection *` can be viewed as a "descriptor" or "handle" to the connection.

The `https://openthread.io/reference/struct/ot-plat-tcp-connection` instance remains valid as long as the connection is active.

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-plat-tcp-connection#structot_plat_tcp_connection_1a0b5f5762f0ba197153e42a556e1b8947` | `https://openthread.io/reference/union/ot-plat-tcp-platform-data` Platform implementation specific data. |

## Public attributes

### mData

```
otPlatTcpPlatformData otPlatTcpConnection::mData
```
Platform implementation specific data.

## Resources

OpenThread API Reference topics originate from the source code, available
on [GitHub](https://github.com/openthread/openthread/tree/main/include/openthread).
For more information, or to contribute to our documentation, refer to
[Resources](https://openthread.io/resources).