# otTcpEndpointInitializeArgs Struct Reference

# otTcpEndpointInitializeArgs


`#include <openthread/tcp.h>`

Contains arguments to the [otTcpEndpointInitialize()](https://openthread.io/reference/group/api-tcp#group__api-tcp_1ga46ca008dbb9657f10692612f3051dd55) function.

## Summary

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-tcp-endpoint-initialize-args#structot_tcp_endpoint_initialize_args_1a2a72de3768698afb69ca4d8352f9f7e2` | `void *` Pointer to application-specific context. |
| `https://openthread.io/reference/struct/ot-tcp-endpoint-initialize-args#structot_tcp_endpoint_initialize_args_1ad63d584070ebe221ec04aa495c3792bb` | `https://openthread.io/reference/group/api-tcp#group__api-tcp_1ga03a1e75e384d545c95cf5acb51f8728b` "Disconnected" callback function |
| `https://openthread.io/reference/struct/ot-tcp-endpoint-initialize-args#structot_tcp_endpoint_initialize_args_1a8e888b9f4625c69766f816cc8394b9f0` | `https://openthread.io/reference/group/api-tcp#group__api-tcp_1ga25c56312aca352fb3f023fab53687558` "Established" callback function |
| `https://openthread.io/reference/struct/ot-tcp-endpoint-initialize-args#structot_tcp_endpoint_initialize_args_1aea3f9e304a47a39c91927ea336b5245f` | `https://openthread.io/reference/group/api-tcp#group__api-tcp_1ga69935ba978a5984e8b38b5fc8854c6fb` "Forward progress" callback function |
| `https://openthread.io/reference/struct/ot-tcp-endpoint-initialize-args#structot_tcp_endpoint_initialize_args_1a3e900aa07c0e319c22ebdee6ac0f2e0e` | `https://openthread.io/reference/group/api-tcp#group__api-tcp_1gaaad9c380c56bfe2dfee43b8f45bfe499` "Receive available" callback function |
| `https://openthread.io/reference/struct/ot-tcp-endpoint-initialize-args#structot_tcp_endpoint_initialize_args_1ac8ed3d753d7e6c55e08b16ab93ea7092` | `void *` Pointer to memory provided to the system for the TCP receive buffer. |
| `https://openthread.io/reference/struct/ot-tcp-endpoint-initialize-args#structot_tcp_endpoint_initialize_args_1a3757770536306ff2553f6f196c18ec2e` | `size_t` Size of memory provided to the system for the TCP receive buffer. |
| `https://openthread.io/reference/struct/ot-tcp-endpoint-initialize-args#structot_tcp_endpoint_initialize_args_1a4b4b634dc110bf11d8e2ad68d4d23c69` | `https://openthread.io/reference/group/api-tcp#group__api-tcp_1gab49b3db0f5d27c85e72672468b6c425b` "Send done" callback function |

## Public attributes

### mContext

```
void * otTcpEndpointInitializeArgs::mContext
```
Pointer to application-specific context.

### mDisconnectedCallback

```
otTcpDisconnected otTcpEndpointInitializeArgs::mDisconnectedCallback
```
"Disconnected" callback function

### mEstablishedCallback

```
otTcpEstablished otTcpEndpointInitializeArgs::mEstablishedCallback
```
"Established" callback function

### mForwardProgressCallback

```
otTcpForwardProgress otTcpEndpointInitializeArgs::mForwardProgressCallback
```
"Forward progress" callback function

### mReceiveAvailableCallback

```
otTcpReceiveAvailable otTcpEndpointInitializeArgs::mReceiveAvailableCallback
```
"Receive available" callback function

### mReceiveBuffer

```
void * otTcpEndpointInitializeArgs::mReceiveBuffer
```
Pointer to memory provided to the system for the TCP receive buffer.

### mReceiveBufferSize

```
size_t otTcpEndpointInitializeArgs::mReceiveBufferSize
```
Size of memory provided to the system for the TCP receive buffer.

### mSendDoneCallback

```
otTcpSendDone otTcpEndpointInitializeArgs::mSendDoneCallback
```
"Send done" callback function

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