pub unsafe extern "C" fn otTcpListenerDeinitialize(
aListener: *mut otTcpListener,
) -> otError
Expand description
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.
@param[in] aListener A pointer to the TCP listener structure to deinitialize.
@retval OT_ERROR_NONE Successfully deinitialized the TCP listener. @retval OT_ERROR_FAILED Failed to deinitialize the TCP listener.