Function libzt::node::zts_init_from_storage [−][src]
pub unsafe extern "C" fn zts_init_from_storage(path: *const c_char) -> c_int
Expand description
@brief Instruct ZeroTier to look for node identity files at the given location. This is an
initialization function that can only be called before zts_node_start()
.
Note that calling this function is not mandatory and if it is not called the node’s keys will be
kept in memory and retrievable via zts_node_get_id_pair()
.
See also: zts_init_from_memory()
@param port Path Null-terminated file-system path string
@return ZTS_ERR_OK
if successful, ZTS_ERR_SERVICE
if the node
experiences a problem, ZTS_ERR_ARG
if invalid argument.