diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-03-27 10:32:30 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-03-27 10:32:30 +0000 |
commit | 817bbb71e3e583ec85d6d63ca3e0cbb90ccd7462 (patch) | |
tree | 7e9e8717e9f57b74fca3a0e93f0d4b94234a1dd3 /src/dht/gnunet-service-dht.c | |
parent | 3814b7980a4ed1117be9659a3d10fa49cb4c16e9 (diff) | |
download | gnunet-817bbb71e3e583ec85d6d63ca3e0cbb90ccd7462.tar.gz gnunet-817bbb71e3e583ec85d6d63ca3e0cbb90ccd7462.zip |
communicate res delay in capi
Diffstat (limited to 'src/dht/gnunet-service-dht.c')
-rw-r--r-- | src/dht/gnunet-service-dht.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dht/gnunet-service-dht.c b/src/dht/gnunet-service-dht.c index 08cc7dc88..3311763cb 100644 --- a/src/dht/gnunet-service-dht.c +++ b/src/dht/gnunet-service-dht.c | |||
@@ -1466,13 +1466,17 @@ update_core_preference (void *cls, | |||
1466 | * @param bpm_out set to the current bandwidth limit (sending) for this peer | 1466 | * @param bpm_out set to the current bandwidth limit (sending) for this peer |
1467 | * @param amount set to the amount that was actually reserved or unreserved; | 1467 | * @param amount set to the amount that was actually reserved or unreserved; |
1468 | * either the full requested amount or zero (no partial reservations) | 1468 | * either the full requested amount or zero (no partial reservations) |
1469 | * @param res_delay if the reservation could not be satisfied (amount was 0), how | ||
1470 | * long should the client wait until re-trying? | ||
1469 | * @param preference current traffic preference for the given peer | 1471 | * @param preference current traffic preference for the given peer |
1470 | */ | 1472 | */ |
1471 | static void | 1473 | static void |
1472 | update_core_preference_finish (void *cls, | 1474 | update_core_preference_finish (void *cls, |
1473 | const struct GNUNET_PeerIdentity *peer, | 1475 | const struct GNUNET_PeerIdentity *peer, |
1474 | struct GNUNET_BANDWIDTH_Value32NBO bpm_out, | 1476 | struct GNUNET_BANDWIDTH_Value32NBO bpm_out, |
1475 | int amount, uint64_t preference) | 1477 | int32_t amount, |
1478 | struct GNUNET_TIME_Relative res_delay, | ||
1479 | uint64_t preference) | ||
1476 | { | 1480 | { |
1477 | struct PeerInfo *peer_info = cls; | 1481 | struct PeerInfo *peer_info = cls; |
1478 | peer_info->info_ctx = NULL; | 1482 | peer_info->info_ctx = NULL; |