aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_udp.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_udp.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_udp.c')
-rw-r--r--src/transport/plugin_transport_udp.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c
index 1cfa1ef43..c00ba1298 100644
--- a/src/transport/plugin_transport_udp.c
+++ b/src/transport/plugin_transport_udp.c
@@ -682,23 +682,6 @@ udp_plugin_address_pretty_printer (void *cls,
682 !numeric, timeout, &append_port, ppc); 682 !numeric, timeout, &append_port, ppc);
683} 683}
684 684
685/**
686 * Set a quota for receiving data from the given peer; this is a
687 * per-transport limit. This call has no meaning for UDP, as if
688 * we don't receive data it still comes in. UDP has no friendliness
689 * guarantees, and our buffers will fill at some level.
690 *
691 * @param cls closure
692 * @param target the peer for whom the quota is given
693 * @param quota_in quota for receiving/sending data in bytes per ms
694 */
695static void
696udp_plugin_set_receive_quota (void *cls,
697 const struct GNUNET_PeerIdentity *target,
698 uint32_t quota_in)
699{
700 return; /* Do nothing */
701}
702 685
703/** 686/**
704 * The exported method. Makes the core api available via a global and 687 * The exported method. Makes the core api available via a global and
@@ -766,7 +749,6 @@ libgnunet_plugin_transport_udp_init (void *cls)
766 api->send = &udp_plugin_send; 749 api->send = &udp_plugin_send;
767 api->disconnect = &udp_disconnect; 750 api->disconnect = &udp_disconnect;
768 api->address_pretty_printer = &udp_plugin_address_pretty_printer; 751 api->address_pretty_printer = &udp_plugin_address_pretty_printer;
769 api->set_receive_quota = &udp_plugin_set_receive_quota;
770 api->check_address = &udp_check_address; 752 api->check_address = &udp_check_address;
771 753
772 plugin->service = service; 754 plugin->service = service;