[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r34173 - gnunet/src/dht
From: |
gnunet |
Subject: |
[GNUnet-SVN] r34173 - gnunet/src/dht |
Date: |
Tue, 19 Aug 2014 20:34:58 +0200 |
Author: supriti
Date: 2014-08-19 20:34:58 +0200 (Tue, 19 Aug 2014)
New Revision: 34173
Modified:
gnunet/src/dht/gnunet-service-xdht_neighbours.h
gnunet/src/dht/gnunet_dht_profiler.c
Log:
Fixing warning
Modified: gnunet/src/dht/gnunet-service-xdht_neighbours.h
===================================================================
--- gnunet/src/dht/gnunet-service-xdht_neighbours.h 2014-08-19 18:33:27 UTC
(rev 34172)
+++ gnunet/src/dht/gnunet-service-xdht_neighbours.h 2014-08-19 18:34:58 UTC
(rev 34173)
@@ -75,6 +75,32 @@
uint32_t desired_replication_level);
/**
+ * Send the get result to requesting client.
+ * @param key Key of the requested data.
+ * @param type Block type
+ * @param target_peer Next peer to forward the message to.
+ * @param source_peer Peer which has the data for the key.
+ * @param put_path_length Number of peers in @a put_path
+ * @param put_path Path taken to put the data at its stored location.
+ * @param get_path_length Number of peers in @a get_path
+ * @param get_path Path taken to reach to the location of the key.
+ * @param expiration When will this result expire?
+ * @param data Payload to store
+ * @param data_size Size of the @a data
+ */
+void
+GDS_NEIGHBOURS_send_get_result (const struct GNUNET_HashCode *key,
+ enum GNUNET_BLOCK_Type type,
+ const struct GNUNET_PeerIdentity *target_peer,
+ const struct GNUNET_PeerIdentity *source_peer,
+ unsigned int put_path_length,
+ const struct GNUNET_PeerIdentity *put_path,
+ unsigned int get_path_length,
+ const struct GNUNET_PeerIdentity *get_path,
+ struct GNUNET_TIME_Absolute expiration,
+ const void *data, size_t data_size);
+
+/**
* Construct a trail teardown message and forward it to target friend.
* @param trail_id Unique identifier of the trail.
* @param trail_direction Direction of trail.
Modified: gnunet/src/dht/gnunet_dht_profiler.c
===================================================================
--- gnunet/src/dht/gnunet_dht_profiler.c 2014-08-19 18:33:27 UTC (rev
34172)
+++ gnunet/src/dht/gnunet_dht_profiler.c 2014-08-19 18:34:58 UTC (rev
34173)
@@ -543,7 +543,7 @@
if (n_active == n_gets_fail + n_gets_ok)
{
average_put_path_length = (double)total_put_path_length/(double)n_active;
- average_get_path_length = (double)total_get_path_length/(double)n_active;
+ average_get_path_length = (double)total_get_path_length/(double )n_active;
summarize ();
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r34173 - gnunet/src/dht,
gnunet <=