diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-14 08:55:32 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-14 08:55:32 +0000 |
commit | af2d0c2e264cfe9d93c686d0c22cfa3408680d03 (patch) | |
tree | dc38dc7489cf404ab28cd4369072e1a2d9485ced | |
parent | 0e027fe10f89f0431e8b223528c9a13bdd991802 (diff) | |
download | gnunet-af2d0c2e264cfe9d93c686d0c22cfa3408680d03.tar.gz gnunet-af2d0c2e264cfe9d93c686d0c22cfa3408680d03.zip |
comments
-rw-r--r-- | src/ats/gnunet-service-ats_addresses.h | 6 | ||||
-rw-r--r-- | src/ats/gnunet-service-ats_performance.h | 2 | ||||
-rw-r--r-- | src/ats/gnunet-service-ats_scheduling.c | 18 | ||||
-rw-r--r-- | src/ats/gnunet-service-ats_scheduling.h | 18 |
4 files changed, 26 insertions, 18 deletions
diff --git a/src/ats/gnunet-service-ats_addresses.h b/src/ats/gnunet-service-ats_addresses.h index 4e27b96d2..f8fada2aa 100644 --- a/src/ats/gnunet-service-ats_addresses.h +++ b/src/ats/gnunet-service-ats_addresses.h | |||
@@ -60,8 +60,14 @@ GAS_address_destroyed (const struct GNUNET_PeerIdentity *peer, | |||
60 | uint32_t session_id); | 60 | uint32_t session_id); |
61 | 61 | ||
62 | 62 | ||
63 | // FIXME: this function should likely end up in the LP-subsystem and | ||
64 | // not with 'addresses' in the future... | ||
65 | // Note: this call should trigger an address suggestion | ||
66 | // (GAS_scheduling_transmit_address_suggestion) | ||
63 | void | 67 | void |
64 | GAS_addresses_request_address (const struct GNUNET_PeerIdentity *peer); | 68 | GAS_addresses_request_address (const struct GNUNET_PeerIdentity *peer); |
65 | 69 | ||
66 | 70 | ||
71 | /* FIXME: add performance request API */ | ||
72 | |||
67 | #endif | 73 | #endif |
diff --git a/src/ats/gnunet-service-ats_performance.h b/src/ats/gnunet-service-ats_performance.h index 24f65ed92..79ffeb5b3 100644 --- a/src/ats/gnunet-service-ats_performance.h +++ b/src/ats/gnunet-service-ats_performance.h | |||
@@ -91,5 +91,7 @@ void | |||
91 | GAS_performance_done (void); | 91 | GAS_performance_done (void); |
92 | 92 | ||
93 | 93 | ||
94 | /* FIXME: add API to broadcast performance updates! */ | ||
95 | |||
94 | #endif | 96 | #endif |
95 | /* end of gnunet-service-ats_performance.h */ | 97 | /* end of gnunet-service-ats_performance.h */ |
diff --git a/src/ats/gnunet-service-ats_scheduling.c b/src/ats/gnunet-service-ats_scheduling.c index f97578384..76c192107 100644 --- a/src/ats/gnunet-service-ats_scheduling.c +++ b/src/ats/gnunet-service-ats_scheduling.c | |||
@@ -148,15 +148,15 @@ GAS_scheduling_remove_client (struct GNUNET_SERVER_Client *client) | |||
148 | * @param bandwidth_in assigned inbound bandwidth | 148 | * @param bandwidth_in assigned inbound bandwidth |
149 | */ | 149 | */ |
150 | void | 150 | void |
151 | GAS_scheduling_transmit_address_update (const struct GNUNET_PeerIdentity *peer, | 151 | GAS_scheduling_transmit_address_suggestion (const struct GNUNET_PeerIdentity *peer, |
152 | const char *plugin_name, | 152 | const char *plugin_name, |
153 | const void *plugin_addr, size_t plugin_addr_len, | 153 | const void *plugin_addr, size_t plugin_addr_len, |
154 | struct GNUNET_SERVER_Client *session_client, | 154 | struct GNUNET_SERVER_Client *session_client, |
155 | uint32_t session_id, | 155 | uint32_t session_id, |
156 | const struct GNUNET_TRANSPORT_ATS_Information *atsi, | 156 | const struct GNUNET_TRANSPORT_ATS_Information *atsi, |
157 | uint32_t atsi_count, | 157 | uint32_t atsi_count, |
158 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, | 158 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, |
159 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in) | 159 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in) |
160 | { | 160 | { |
161 | struct SchedulingClient *sc; | 161 | struct SchedulingClient *sc; |
162 | struct AddressSuggestionMessage *msg; | 162 | struct AddressSuggestionMessage *msg; |
diff --git a/src/ats/gnunet-service-ats_scheduling.h b/src/ats/gnunet-service-ats_scheduling.h index d2506de6a..8d6fa977d 100644 --- a/src/ats/gnunet-service-ats_scheduling.h +++ b/src/ats/gnunet-service-ats_scheduling.h | |||
@@ -65,15 +65,15 @@ GAS_scheduling_remove_client (struct GNUNET_SERVER_Client *client); | |||
65 | * @param bandwidth_in assigned inbound bandwidth | 65 | * @param bandwidth_in assigned inbound bandwidth |
66 | */ | 66 | */ |
67 | void | 67 | void |
68 | GAS_scheduling_transmit_address_update (const struct GNUNET_PeerIdentity *peer, | 68 | GAS_scheduling_transmit_address_suggestion (const struct GNUNET_PeerIdentity *peer, |
69 | const char *plugin_name, | 69 | const char *plugin_name, |
70 | const void *plugin_addr, size_t plugin_addr_len, | 70 | const void *plugin_addr, size_t plugin_addr_len, |
71 | struct GNUNET_SERVER_Client *session_client, | 71 | struct GNUNET_SERVER_Client *session_client, |
72 | uint32_t session_id, | 72 | uint32_t session_id, |
73 | const struct GNUNET_TRANSPORT_ATS_Information *atsi, | 73 | const struct GNUNET_TRANSPORT_ATS_Information *atsi, |
74 | uint32_t atsi_count, | 74 | uint32_t atsi_count, |
75 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, | 75 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, |
76 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in); | 76 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in); |
77 | 77 | ||
78 | 78 | ||
79 | /** | 79 | /** |