Found 2 other functions taking a
otTcpEndpointInitializeArgs
argument:
Initializes a TCP endpoint. Calling this function causes OpenThread to keep track of the TCP endpoint and store and retrieve TCP data inside the @p aEndpoint. The application should refrain from directly accessing or modifying the fields in @p aEndpoint. If the application needs to reclaim the memory backing @p aEndpoint, it should call otTcpEndpointDeinitialize().
Initializes a TCP endpoint. Calling this function causes OpenThread to keep track of this Endpoint and store and retrieve TCP data inside of it. The application should refrain from directly accessing or modifying the fields in this Endpoint. If the application needs to reclaim the memory backing this Endpoint, it should call otTcpEndpointDeinitialize(). @sa otTcpEndpointInitialize in include/openthread/tcp.h.