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/include | |
parent | e93cd1377e5a3a5d7e4327eaef0c9e38daa98b3f (diff) | |
download | gnunet-094a3aa5ed1723f6cf17498b3d233c61736b399a.tar.gz gnunet-094a3aa5ed1723f6cf17498b3d233c61736b399a.zip |
ATS API: do inbound and outbound bw
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_ats_service.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/include/gnunet_ats_service.h b/src/include/gnunet_ats_service.h index 9317ace43..5e302da5c 100644 --- a/src/include/gnunet_ats_service.h +++ b/src/include/gnunet_ats_service.h | |||
@@ -56,7 +56,8 @@ struct GNUNET_ATS_Handle; | |||
56 | * @param session session to use (if available) | 56 | * @param session session to use (if available) |
57 | * @param plugin_addr address to use (if available) | 57 | * @param plugin_addr address to use (if available) |
58 | * @param plugin_addr_len number of bytes in addr | 58 | * @param plugin_addr_len number of bytes in addr |
59 | * @param bandwidth assigned outbound bandwidth for the connection | 59 | * @param bandwidth_out assigned outbound bandwidth for the connection |
60 | * @param bandwidth_in assigned inbound bandwidth for the connection | ||
60 | */ | 61 | */ |
61 | typedef void (*GNUNET_TRANSPORT_ATS_AllocationNotification) (void *cls, | 62 | typedef void (*GNUNET_TRANSPORT_ATS_AllocationNotification) (void *cls, |
62 | const struct | 63 | const struct |
@@ -72,7 +73,10 @@ typedef void (*GNUNET_TRANSPORT_ATS_AllocationNotification) (void *cls, | |||
72 | plugin_addr_len, | 73 | plugin_addr_len, |
73 | struct | 74 | struct |
74 | GNUNET_BANDWIDTH_Value32NBO | 75 | GNUNET_BANDWIDTH_Value32NBO |
75 | bandwidth); | 76 | bandwidth_out, |
77 | struct | ||
78 | GNUNET_BANDWIDTH_Value32NBO | ||
79 | bandwidth_in); | ||
76 | 80 | ||
77 | 81 | ||
78 | /** | 82 | /** |
@@ -106,7 +110,8 @@ GNUNET_ATS_shutdown (struct GNUNET_ATS_Handle *atc); | |||
106 | * @param plugin_name name of the plugin, NULL if we have no suggestion | 110 | * @param plugin_name name of the plugin, NULL if we have no suggestion |
107 | * @param plugin_addr suggested address, NULL if we have no suggestion | 111 | * @param plugin_addr suggested address, NULL if we have no suggestion |
108 | * @param plugin_addr_len number of bytes in plugin_addr | 112 | * @param plugin_addr_len number of bytes in plugin_addr |
109 | * @param bandwidth assigned outbound bandwidth for the connection | 113 | * @param bandwidth_out assigned outbound bandwidth for the connection |
114 | * @param bandwidth_in assigned inbound bandwidth for the connection | ||
110 | * @param ats performance data for the address (as far as known) | 115 | * @param ats performance data for the address (as far as known) |
111 | * @param ats_count number of performance records in 'ats' | 116 | * @param ats_count number of performance records in 'ats' |
112 | */ | 117 | */ |
@@ -120,7 +125,10 @@ typedef void (*GNUNET_ATS_AddressSuggestionCallback) (void *cls, | |||
120 | struct Session * session, | 125 | struct Session * session, |
121 | struct | 126 | struct |
122 | GNUNET_BANDWIDTH_Value32NBO | 127 | GNUNET_BANDWIDTH_Value32NBO |
123 | bandwidth, | 128 | bandwidth_out, |
129 | struct | ||
130 | GNUNET_BANDWIDTH_Value32NBO | ||
131 | bandwidth_in, | ||
124 | const struct | 132 | const struct |
125 | GNUNET_TRANSPORT_ATS_Information | 133 | GNUNET_TRANSPORT_ATS_Information |
126 | * ats, | 134 | * ats, |