otTcpStopListening() function
Causes this TCP listener to stop listening for incoming connections.
Arguments
aListener
A pointer to the TCP listener structure that should stop listening.
Return value
OT_ERROR_NONE Successfully stopped listening on the TCP listener. OT_ERROR_FAILED Failed to stop listening on the TCP listener.