Function libzt::zts_node_free[][src]

pub unsafe extern "C" fn zts_node_free() -> c_int
Expand description

@brief Stop all background threads, bring down all transport services, free all resources. After calling this function an application restart will be required before the library can be used again. Callable only after the node has been started.

This should be called at the end of your program or when you do not anticipate communicating over ZeroTier again.

@return ZTS_ERR_OK if successful, ZTS_ERR_SERVICE if the node experiences a problem.