Function gnunet_sys::GNUNET_CORE_monitor_start[][src]

pub unsafe extern "C" fn GNUNET_CORE_monitor_start(
    cfg: *const GNUNET_CONFIGURATION_Handle,
    peer_cb: GNUNET_CORE_MonitorCallback,
    peer_cb_cls: *mut c_void
) -> *mut GNUNET_CORE_MonitorHandle

Monitor connectivity and KX status of all peers known to CORE. Calls @a peer_cb with the current status for each connected peer, and then once with NULL to indicate that all peers that are currently active have been handled. After that, the iteration continues until it is cancelled. Normal users of the CORE API are not expected to use this function. It is different in that it truly lists all connections (including those where the KX is in progress), not just those relevant to the application. This function is used by special applications for diagnostics.

@param cfg configuration handle @param peer_cb function to call with the peer information @param peer_cb_cls closure for @a peer_cb @return NULL on error