# otTcpListenerInitializeArgs Struct Reference

# otTcpListenerInitializeArgs


`#include <openthread/tcp.h>`

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

## Summary

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-tcp-listener-initialize-args#structot_tcp_listener_initialize_args_1a70b0ca7dc9f923fcc8cc56eb494a60fe` | `https://openthread.io/reference/group/api-tcp#group__api-tcp_1ga399f95bb0ad56cbe6f317127fdf2e7be` "Accept done" callback function |
| `https://openthread.io/reference/struct/ot-tcp-listener-initialize-args#structot_tcp_listener_initialize_args_1ac7ef57876bfa77eff684101413833501` | `https://openthread.io/reference/group/api-tcp#group__api-tcp_1gaf53a2e6d1a995ed5f7e09f6799bc828c` "Accept ready" callback function |
| `https://openthread.io/reference/struct/ot-tcp-listener-initialize-args#structot_tcp_listener_initialize_args_1ac8580c88a383ea181e170004a820490a` | `void *` Pointer to application-specific context. |

## Public attributes

### mAcceptDoneCallback

```
otTcpAcceptDone otTcpListenerInitializeArgs::mAcceptDoneCallback
```
"Accept done" callback function

### mAcceptReadyCallback

```
otTcpAcceptReady otTcpListenerInitializeArgs::mAcceptReadyCallback
```
"Accept ready" callback function

### mContext

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

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