}
}
+
/**
* Find the maximum send time of the recently sent values.
*
return max_time;
}
+
static void
increment_stats (const char *value)
{
- if (stats != NULL)
- {
- GNUNET_STATISTICS_update (stats, value, 1, GNUNET_NO);
- }
+ if (stats == NULL)
+ return;
+ GNUNET_STATISTICS_update (stats, value, 1, GNUNET_NO);
}
+
static void
decrement_stats (const char *value)
{
- if (stats != NULL)
- {
- GNUNET_STATISTICS_update (stats, value, -1, GNUNET_NO);
- }
+ if (stats == NULL)
+ return;
+ GNUNET_STATISTICS_update (stats, value, -1, GNUNET_NO);
}
+
/**
* Try to send another message from our core send list
*/
}
}
+
/**
* Function called to send a request out to another peer.
* Called both for locally initiated requests and those
return msb | lsb;
}
+
/**
* Return a number that is larger the closer the
* "have" GNUNET_hash code is to the "target".
return results;
}
+
static void
remove_recent_find_peer (void *cls,
const struct GNUNET_SCHEDULER_TaskContext *tc)
GNUNET_free (key);
}
+
/**
* Server handler for initiating local dht find peer requests
*