aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_template.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-03-01 13:16:24 +0000
committerChristian Grothoff <christian@grothoff.org>2010-03-01 13:16:24 +0000
commit629ff286ace0543d2d984319fba6bacf60408890 (patch)
tree290401a046b56514028cfca8238295a38e746ba8 /src/transport/plugin_transport_template.c
parentd996714222558d6d2b3f590f9c4dda9d872d913c (diff)
downloadgnunet-629ff286ace0543d2d984319fba6bacf60408890.tar.gz
gnunet-629ff286ace0543d2d984319fba6bacf60408890.zip
fixing API issue of who is responsible for quota in
Diffstat (limited to 'src/transport/plugin_transport_template.c')
-rw-r--r--src/transport/plugin_transport_template.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/transport/plugin_transport_template.c b/src/transport/plugin_transport_template.c
index fc1c1722b..6ad555a51 100644
--- a/src/transport/plugin_transport_template.c
+++ b/src/transport/plugin_transport_template.c
@@ -219,23 +219,6 @@ template_plugin_address_pretty_printer (void *cls,
219 asc (asc_cls, NULL); 219 asc (asc_cls, NULL);
220} 220}
221 221
222/**
223 * Set a quota for receiving data from the given peer; this is a
224 * per-transport limit. The transport should limit its read/select
225 * calls to stay below the quota (in terms of incoming data).
226 *
227 * @param cls closure
228 * @param target the peer for whom the quota is given
229 * @param quota_in quota for receiving/sending data in bytes per ms
230 */
231static void
232template_plugin_set_receive_quota (void *cls,
233 const struct GNUNET_PeerIdentity *target,
234 uint32_t quota_in)
235{
236 // struct Plugin *plugin = cls;
237 // FIXME!
238}
239 222
240 223
241/** 224/**
@@ -280,7 +263,6 @@ gnunet_plugin_transport_template_init (void *cls)
280 api->send = &template_plugin_send; 263 api->send = &template_plugin_send;
281 api->disconnect = &template_plugin_disconnect; 264 api->disconnect = &template_plugin_disconnect;
282 api->address_pretty_printer = &template_plugin_address_pretty_printer; 265 api->address_pretty_printer = &template_plugin_address_pretty_printer;
283 api->set_receive_quota = &template_plugin_set_receive_quota;
284 api->check_address = &template_plugin_address_suggested; 266 api->check_address = &template_plugin_address_suggested;
285 return api; 267 return api;
286} 268}