Found 2 other functions taking a
otTcpListenerInitializeArgs
argument:
Initializes a TCP listener. Calling this function causes OpenThread to keep track of the TCP listener and store and retrieve TCP data inside this Listener. The application should refrain from directly accessing or modifying the fields in this Listener. If the application needs to reclaim the memory backing this Listener, it should call otTcpListenerDeinitialize(). @sa otTcpListenerInitialize
Initializes a TCP listener. Calling this function causes OpenThread to keep track of the TCP listener and store and retrieve TCP data inside @p aListener. The application should refrain from directly accessing or modifying the fields in @p aListener. If the application needs to reclaim the memory backing @p aListener, it should call otTcpListenerDeinitialize().