# otPlatTcpSockAddr


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

Represents a TCP socket address.

## Summary

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-plat-tcp-sock-addr#structot_plat_tcp_sock_addr_1ae9e8fc3b0ca5a74d1c9adeed3dadabdd` | `uint32_t` Interface index. Zero indicates any/unspecified. |
| `https://openthread.io/reference/struct/ot-plat-tcp-sock-addr#structot_plat_tcp_sock_addr_1a937dcdadf73d036721c711bba118f590` | `https://openthread.io/reference/struct/ot-sock-addr` The socket address (IP address and port number). Use IPv4-mapped IPv6 for IPv4. |

## Public attributes

### mIfIndex

```
uint32_t otPlatTcpSockAddr::mIfIndex
```
Interface index. Zero indicates any/unspecified.

### mSockAddr

```
otSockAddr otPlatTcpSockAddr::mSockAddr
```
The socket address (IP address and port number). Use IPv4-mapped IPv6 for IPv4.

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