Function gnunet_sys::GNUNET_BANDWIDTH_tracker_consume [−][src]
pub unsafe extern "C" fn GNUNET_BANDWIDTH_tracker_consume(
av: *mut GNUNET_BANDWIDTH_Tracker,
size: isize
) -> c_int
Notify the tracker that a certain number of bytes of bandwidth have been consumed. Note that it is legal to consume bytes even if not enough bandwidth is available (in that case, #GNUNET_BANDWIDTH_tracker_get_delay() may return non-zero delay values even for a size of zero for a while).
@param av tracker to update @param size number of bytes consumed @return #GNUNET_YES if this consumption is above the limit