diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-12-15 15:01:39 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-12-15 15:01:39 +0000 |
commit | 8094e23bf7e13b1c203ba8b85e5edcbfdf5ff650 (patch) | |
tree | 424d79f91128aa2428c32d8c6efbd9e926bf37b6 /src/ats/gnunet-service-ats_performance.c | |
parent | 482d35a0c3148bcc69929c5778038db00d0839b9 (diff) | |
download | gnunet-8094e23bf7e13b1c203ba8b85e5edcbfdf5ff650.tar.gz gnunet-8094e23bf7e13b1c203ba8b85e5edcbfdf5ff650.zip |
-doxygen, indentation
Diffstat (limited to 'src/ats/gnunet-service-ats_performance.c')
-rw-r--r-- | src/ats/gnunet-service-ats_performance.c | 33 |
1 files changed, 23 insertions, 10 deletions
diff --git a/src/ats/gnunet-service-ats_performance.c b/src/ats/gnunet-service-ats_performance.c index ac2509455..71e176a60 100644 --- a/src/ats/gnunet-service-ats_performance.c +++ b/src/ats/gnunet-service-ats_performance.c | |||
@@ -360,13 +360,26 @@ GAS_performance_add_client (struct GNUNET_SERVER_Client *client, | |||
360 | 360 | ||
361 | 361 | ||
362 | /** | 362 | /** |
363 | * FIXME. | 363 | * Send a #GNUNET_MESSAGE_TYPE_ATS_ADDRESSLIST_RESPONSE with the |
364 | * given address details to the client identified in @a ai. | ||
365 | * | ||
366 | * @param ai our address information context (identifies the client) | ||
367 | * @param id the peer id this address is for | ||
368 | * @param plugin_name name of the plugin that supports this address | ||
369 | * @param plugin_addr address | ||
370 | * @param plugin_addr_len length of @a plugin_addr | ||
371 | * @param active #GNUNET_YES if this address is actively used | ||
372 | * @param atsi ats performance information | ||
373 | * @param atsi_count number of ats performance elements in @a atsi | ||
374 | * @param bandwidth_out current outbound bandwidth assigned to address | ||
375 | * @param bandwidth_in current inbound bandwidth assigned to address | ||
364 | */ | 376 | */ |
365 | static void | 377 | static void |
366 | transmit_req_addr (struct AddressIteration *ai, | 378 | transmit_req_addr (struct AddressIteration *ai, |
367 | const struct GNUNET_PeerIdentity *id, | 379 | const struct GNUNET_PeerIdentity *id, |
368 | const char *plugin_name, | 380 | const char *plugin_name, |
369 | const void *plugin_addr, size_t plugin_addr_len, | 381 | const void *plugin_addr, |
382 | size_t plugin_addr_len, | ||
370 | int active, | 383 | int active, |
371 | const struct GNUNET_ATS_Information *atsi, | 384 | const struct GNUNET_ATS_Information *atsi, |
372 | uint32_t atsi_count, | 385 | uint32_t atsi_count, |
@@ -468,14 +481,14 @@ req_addr_peerinfo_it (void *cls, | |||
468 | /* Transmit result */ | 481 | /* Transmit result */ |
469 | if ((GNUNET_YES == ai->all) || (GNUNET_YES == active)) | 482 | if ((GNUNET_YES == ai->all) || (GNUNET_YES == active)) |
470 | { | 483 | { |
471 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 484 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
472 | "Sending result for %s peer `%s' plugin `%s' BW out %u, BW in %u\n", | 485 | "Sending result for %s peer `%s' plugin `%s' BW out %u, BW in %u\n", |
473 | (active == GNUNET_YES) ? "ACTIVE" : "INACTIVE", | 486 | (active == GNUNET_YES) ? "ACTIVE" : "INACTIVE", |
474 | GNUNET_i2s (id), | 487 | GNUNET_i2s (id), |
475 | plugin_name, | 488 | plugin_name, |
476 | (unsigned int) ntohl (bandwidth_out.value__), | 489 | (unsigned int) ntohl (bandwidth_out.value__), |
477 | (unsigned int) ntohl (bandwidth_in.value__)); | 490 | (unsigned int) ntohl (bandwidth_in.value__)); |
478 | transmit_req_addr (cls, | 491 | transmit_req_addr (ai, |
479 | id, | 492 | id, |
480 | plugin_name, | 493 | plugin_name, |
481 | plugin_addr, plugin_addr_len, | 494 | plugin_addr, plugin_addr_len, |