otTcpListenerDeinitialize() function
Deinitializes this TCP listener. This means that OpenThread no longer keeps track of this TCP listener and deallocates all resources it has internally allocated for this TCP listener. The application can reuse the memory backing the TCP listener as it sees fit. If the TCP listener is currently listening, it stops listening.
Arguments
aListener
A pointer to the TCP listener structure to deinitialize.
Return value
OT_ERROR_NONE Successfully deinitialized the TCP listener. OT_ERROR_FAILED Failed to deinitialize the TCP listener.