diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-09-23 09:19:19 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-09-23 09:19:19 +0000 |
commit | e730bd4b9d68a38b3d4277f6222369de61da8225 (patch) | |
tree | d27eaabe8d6450d7056b726aaf7a2b4c9d2ff9af /src/dht/gnunet-service-dht_neighbours.c | |
parent | b4c960a89653aeab4a3ef1f6102623bbb9c92f44 (diff) | |
download | gnunet-e730bd4b9d68a38b3d4277f6222369de61da8225.tar.gz gnunet-e730bd4b9d68a38b3d4277f6222369de61da8225.zip |
-doxygen, style
Diffstat (limited to 'src/dht/gnunet-service-dht_neighbours.c')
-rw-r--r-- | src/dht/gnunet-service-dht_neighbours.c | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c index 21772c2c4..6d3ec6d8c 100644 --- a/src/dht/gnunet-service-dht_neighbours.c +++ b/src/dht/gnunet-service-dht_neighbours.c | |||
@@ -110,7 +110,7 @@ GNUNET_NETWORK_STRUCT_BEGIN | |||
110 | struct PeerPutMessage | 110 | struct PeerPutMessage |
111 | { | 111 | { |
112 | /** | 112 | /** |
113 | * Type: GNUNET_MESSAGE_TYPE_DHT_P2P_PUT | 113 | * Type: #GNUNET_MESSAGE_TYPE_DHT_P2P_PUT |
114 | */ | 114 | */ |
115 | struct GNUNET_MessageHeader header; | 115 | struct GNUNET_MessageHeader header; |
116 | 116 | ||
@@ -167,7 +167,7 @@ struct PeerPutMessage | |||
167 | struct PeerResultMessage | 167 | struct PeerResultMessage |
168 | { | 168 | { |
169 | /** | 169 | /** |
170 | * Type: GNUNET_MESSAGE_TYPE_DHT_P2P_RESULT | 170 | * Type: #GNUNET_MESSAGE_TYPE_DHT_P2P_RESULT |
171 | */ | 171 | */ |
172 | struct GNUNET_MessageHeader header; | 172 | struct GNUNET_MessageHeader header; |
173 | 173 | ||
@@ -211,7 +211,7 @@ struct PeerResultMessage | |||
211 | struct PeerGetMessage | 211 | struct PeerGetMessage |
212 | { | 212 | { |
213 | /** | 213 | /** |
214 | * Type: GNUNET_MESSAGE_TYPE_DHT_P2P_GET | 214 | * Type: #GNUNET_MESSAGE_TYPE_DHT_P2P_GET |
215 | */ | 215 | */ |
216 | struct GNUNET_MessageHeader header; | 216 | struct GNUNET_MessageHeader header; |
217 | 217 | ||
@@ -1201,10 +1201,10 @@ get_target_peers (const struct GNUNET_HashCode *key, | |||
1201 | * @param hop_count how many hops has this message traversed so far | 1201 | * @param hop_count how many hops has this message traversed so far |
1202 | * @param bf Bloom filter of peers this PUT has already traversed | 1202 | * @param bf Bloom filter of peers this PUT has already traversed |
1203 | * @param key key for the content | 1203 | * @param key key for the content |
1204 | * @param put_path_length number of entries in put_path | 1204 | * @param put_path_length number of entries in @a put_path |
1205 | * @param put_path peers this request has traversed so far (if tracked) | 1205 | * @param put_path peers this request has traversed so far (if tracked) |
1206 | * @param data payload to store | 1206 | * @param data payload to store |
1207 | * @param data_size number of bytes in data | 1207 | * @param data_size number of bytes in @a data |
1208 | */ | 1208 | */ |
1209 | void | 1209 | void |
1210 | GDS_NEIGHBOURS_handle_put (enum GNUNET_BLOCK_Type type, | 1210 | GDS_NEIGHBOURS_handle_put (enum GNUNET_BLOCK_Type type, |
@@ -1213,7 +1213,7 @@ GDS_NEIGHBOURS_handle_put (enum GNUNET_BLOCK_Type type, | |||
1213 | struct GNUNET_TIME_Absolute expiration_time, | 1213 | struct GNUNET_TIME_Absolute expiration_time, |
1214 | uint32_t hop_count, | 1214 | uint32_t hop_count, |
1215 | struct GNUNET_CONTAINER_BloomFilter *bf, | 1215 | struct GNUNET_CONTAINER_BloomFilter *bf, |
1216 | const struct GNUNET_HashCode * key, | 1216 | const struct GNUNET_HashCode *key, |
1217 | unsigned int put_path_length, | 1217 | unsigned int put_path_length, |
1218 | struct GNUNET_PeerIdentity *put_path, | 1218 | struct GNUNET_PeerIdentity *put_path, |
1219 | const void *data, size_t data_size) | 1219 | const void *data, size_t data_size) |
@@ -1320,9 +1320,9 @@ GDS_NEIGHBOURS_handle_put (enum GNUNET_BLOCK_Type type, | |||
1320 | * @param hop_count how many hops did this request traverse so far? | 1320 | * @param hop_count how many hops did this request traverse so far? |
1321 | * @param key key for the content | 1321 | * @param key key for the content |
1322 | * @param xquery extended query | 1322 | * @param xquery extended query |
1323 | * @param xquery_size number of bytes in xquery | 1323 | * @param xquery_size number of bytes in @a xquery |
1324 | * @param reply_bf bloomfilter to filter duplicates | 1324 | * @param reply_bf bloomfilter to filter duplicates |
1325 | * @param reply_bf_mutator mutator for reply_bf | 1325 | * @param reply_bf_mutator mutator for @a reply_bf |
1326 | * @param peer_bf filter for peers not to select (again) | 1326 | * @param peer_bf filter for peers not to select (again) |
1327 | */ | 1327 | */ |
1328 | void | 1328 | void |
@@ -1434,12 +1434,12 @@ GDS_NEIGHBOURS_handle_get (enum GNUNET_BLOCK_Type type, | |||
1434 | * @param type type of the block | 1434 | * @param type type of the block |
1435 | * @param expiration_time when does the content expire | 1435 | * @param expiration_time when does the content expire |
1436 | * @param key key for the content | 1436 | * @param key key for the content |
1437 | * @param put_path_length number of entries in put_path | 1437 | * @param put_path_length number of entries in @a put_path |
1438 | * @param put_path peers the original PUT traversed (if tracked) | 1438 | * @param put_path peers the original PUT traversed (if tracked) |
1439 | * @param get_path_length number of entries in put_path | 1439 | * @param get_path_length number of entries in @a get_path |
1440 | * @param get_path peers this reply has traversed so far (if tracked) | 1440 | * @param get_path peers this reply has traversed so far (if tracked) |
1441 | * @param data payload of the reply | 1441 | * @param data payload of the reply |
1442 | * @param data_size number of bytes in data | 1442 | * @param data_size number of bytes in @a data |
1443 | */ | 1443 | */ |
1444 | void | 1444 | void |
1445 | GDS_NEIGHBOURS_handle_reply (const struct GNUNET_PeerIdentity *target, | 1445 | GDS_NEIGHBOURS_handle_reply (const struct GNUNET_PeerIdentity *target, |
@@ -1535,11 +1535,12 @@ core_init (void *cls, | |||
1535 | * @param peer sender of the request | 1535 | * @param peer sender of the request |
1536 | * @param message message | 1536 | * @param message message |
1537 | * @param peer peer identity this notification is about | 1537 | * @param peer peer identity this notification is about |
1538 | * @return GNUNET_OK to keep the connection open, | 1538 | * @return #GNUNET_OK to keep the connection open, |
1539 | * GNUNET_SYSERR to close it (signal serious error) | 1539 | * #GNUNET_SYSERR to close it (signal serious error) |
1540 | */ | 1540 | */ |
1541 | static int | 1541 | static int |
1542 | handle_dht_p2p_put (void *cls, const struct GNUNET_PeerIdentity *peer, | 1542 | handle_dht_p2p_put (void *cls, |
1543 | const struct GNUNET_PeerIdentity *peer, | ||
1543 | const struct GNUNET_MessageHeader *message) | 1544 | const struct GNUNET_MessageHeader *message) |
1544 | { | 1545 | { |
1545 | const struct PeerPutMessage *put; | 1546 | const struct PeerPutMessage *put; |
@@ -1588,7 +1589,8 @@ handle_dht_p2p_put (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
1588 | char *tmp; | 1589 | char *tmp; |
1589 | 1590 | ||
1590 | tmp = GNUNET_strdup (GNUNET_i2s (&my_identity)); | 1591 | tmp = GNUNET_strdup (GNUNET_i2s (&my_identity)); |
1591 | LOG_TRAFFIC (GNUNET_ERROR_TYPE_DEBUG, "XDHT PUT %s: %s->%s (%u, %u=>%u)\n", | 1592 | LOG_TRAFFIC (GNUNET_ERROR_TYPE_DEBUG, |
1593 | "XDHT PUT %s: %s->%s (%u, %u=>%u)\n", | ||
1592 | GNUNET_h2s (&put->key), GNUNET_i2s (peer), tmp, | 1594 | GNUNET_h2s (&put->key), GNUNET_i2s (peer), tmp, |
1593 | ntohl(put->hop_count), | 1595 | ntohl(put->hop_count), |
1594 | GNUNET_CRYPTO_hash_matching_bits (&peer->hashPubKey, &put->key), | 1596 | GNUNET_CRYPTO_hash_matching_bits (&peer->hashPubKey, &put->key), |