* close all sockets, and shut down its own thread.
*
* This function always succeeds. It is allowed to call meshlink_stop() even if MeshLink is already stopped or has never been started.
+ * Channels that are still open will remain valid, but any communication via channels will stop as well.
*
* @param mesh A handle which represents an instance of MeshLink.
*/
/// Close the MeshLink handle.
/** This function calls meshlink_stop() if necessary,
- * and frees the struct meshlink_handle and all associacted memory allocated by MeshLink.
+ * and frees the struct meshlink_handle and all associacted memory allocated by MeshLink, including all channels.
* Afterwards, the handle and any pointers to a struct meshlink_node or struct meshlink_channel are invalid.
*
* It is allowed to call this function at any time on a valid handle, except inside callback functions.