Function libzt::zts_node_start [−][src]
pub unsafe extern "C" fn zts_node_start() -> c_int
Expand description
@brief Start the ZeroTier node. Should be called after calling the relevant
zts_init_*
functions for your application. To enable storage call
zts_init_from_storage()
before this function. To enable event callbacks
call zts_init_set_event_handler()
before this function.
Note: If neither zts_init_from_storage()
or zts_init_from_memory()
are
called a new identity will be generated and will be retrievable via
zts_node_get_id_pair()
after the node has started.
@return ZTS_ERR_OK
if successful, ZTS_ERR_SERVICE
if the node
experiences a problem.