diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-10 10:39:43 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-10 10:39:43 +0000 |
commit | 094a3aa5ed1723f6cf17498b3d233c61736b399a (patch) | |
tree | c786e8ad0afce06100b58655ec54671f7c91b1eb /src/transport/gnunet-service-transport.c | |
parent | e93cd1377e5a3a5d7e4327eaef0c9e38daa98b3f (diff) | |
download | gnunet-094a3aa5ed1723f6cf17498b3d233c61736b399a.tar.gz gnunet-094a3aa5ed1723f6cf17498b3d233c61736b399a.zip |
ATS API: do inbound and outbound bw
Diffstat (limited to 'src/transport/gnunet-service-transport.c')
-rw-r--r-- | src/transport/gnunet-service-transport.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index 3693bcf2e..fb5a5c5e6 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c | |||
@@ -322,17 +322,20 @@ plugin_env_session_end (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
322 | * @param session session to use (if available) | 322 | * @param session session to use (if available) |
323 | * @param plugin_addr address to use (if available) | 323 | * @param plugin_addr address to use (if available) |
324 | * @param plugin_addr_len number of bytes in addr | 324 | * @param plugin_addr_len number of bytes in addr |
325 | * @param bandwidth assigned outbound bandwidth for the connection | 325 | * @param bandwidth_out assigned outbound bandwidth for the connection |
326 | * @param bandwidth_in assigned inbound bandwidth for the connection | ||
326 | */ | 327 | */ |
327 | static void | 328 | static void |
328 | ats_request_address_change (void *cls, const struct GNUNET_PeerIdentity *peer, | 329 | ats_request_address_change (void *cls, const struct GNUNET_PeerIdentity *peer, |
329 | const char *plugin_name, struct Session *session, | 330 | const char *plugin_name, struct Session *session, |
330 | const void *plugin_addr, size_t plugin_addr_len, | 331 | const void *plugin_addr, size_t plugin_addr_len, |
331 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth) | 332 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, |
333 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in) | ||
332 | { | 334 | { |
333 | GST_neighbours_switch_to_address (peer, plugin_name, plugin_addr, | 335 | GST_neighbours_switch_to_address (peer, plugin_name, plugin_addr, |
334 | plugin_addr_len, session, NULL, 0); | 336 | plugin_addr_len, session, NULL, 0); |
335 | GST_neighbours_set_incoming_quota (peer, bandwidth); | 337 | GST_neighbours_set_incoming_quota (peer, bandwidth_in); |
338 | // FIXME: use 'bandwidth_out'! | ||
336 | } | 339 | } |
337 | 340 | ||
338 | 341 | ||