Function gnunet_sys::GNUNET_SERVICE_client_mark_monitor[][src]

pub unsafe extern "C" fn GNUNET_SERVICE_client_mark_monitor(
    c: *mut GNUNET_SERVICE_Client
)

Set the ‘monitor’ flag on this client. Clients which have been marked as ‘monitors’ won’t prevent the server from shutting down once #GNUNET_SERVICE_stop_listening() has been invoked. The idea is that for “normal” clients we likely want to allow them to process their requests; however, monitor-clients are likely to ‘never’ disconnect during shutdown and thus will not be considered when determining if the server should continue to exist after shutdown has been triggered.

@param c client to mark as a monitor