* all.
*
* @param priority priority of the request (used as a reference point to compare with the load)
- * @return GNUNET_YES if the load is too high to do anything (load high)
- * GNUNET_NO to process normally (load normal)
- * GNUNET_SYSERR to process for free (load low)
+ * @return #GNUNET_YES if the load is too high to do anything (load high)
+ * #GNUNET_NO to process normally (load normal)
+ * #GNUNET_SYSERR to process for free (load low)
*/
int
GSF_test_get_load_too_high_ (uint32_t priority)
* @param bandwidth_out assigned outbound bandwidth for the connection
* @param bandwidth_in assigned inbound bandwidth for the connection
* @param ats performance data for the address (as far as known)
- * @param ats_count number of performance records in 'ats'
+ * @param ats_count number of performance records in @a ats
*/
static void
update_latencies (void *cls,
{
struct GSF_ConnectedPeer *cp;
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Received P2P PUT from %s\n",
+ GNUNET_i2s (other));
cp = GSF_peer_get_ (other);
if (NULL == cp)
{
* We have a new request, consider forwarding it to the given
* peer.
*
- * @param cls the 'struct GSF_PendingRequest'
+ * @param cls the `struct GSF_PendingRequest`
* @param peer identity of the peer
* @param cp handle to the connected peer record
* @param ppd peer performance data
peer_connect_handler (void *cls,
const struct GNUNET_PeerIdentity *peer)
{
- if (0 != GNUNET_CRYPTO_cmp_peer_identity (&my_id,
- peer))
+ if (0 ==
+ GNUNET_CRYPTO_cmp_peer_identity (&my_id,
+ peer))
return;
GSF_peer_connect_handler_ (peer,
&connected_peer_cb,
GNUNET_CRYPTO_eddsa_key_get_public (pk,
&my_id.public_key);
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "I am peer %s\n",
+ GNUNET_i2s (&my_id));
GSF_core
= GNUNET_CORE_connect (GSF_cfg, NULL,
&peer_init_handler,