diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-22 20:16:14 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-22 20:16:14 +0000 |
commit | 3a81c3e236a3679c0c0676d814c71d9ae5f38ec3 (patch) | |
tree | 5c1975092f28f3f94fa19902bc7fbd0b773eaf6c /src/transport/gnunet-service-transport_clients.c | |
parent | f3910e0b479e7a4693d8dc5341e4c8a2769c1aaa (diff) | |
download | gnunet-3a81c3e236a3679c0c0676d814c71d9ae5f38ec3.tar.gz gnunet-3a81c3e236a3679c0c0676d814c71d9ae5f38ec3.zip |
eliminating GNUNET_TRANSPORT_set_quota code
Diffstat (limited to 'src/transport/gnunet-service-transport_clients.c')
-rw-r--r-- | src/transport/gnunet-service-transport_clients.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/transport/gnunet-service-transport_clients.c b/src/transport/gnunet-service-transport_clients.c index 9252a5c10..6b07136e8 100644 --- a/src/transport/gnunet-service-transport_clients.c +++ b/src/transport/gnunet-service-transport_clients.c | |||
@@ -600,34 +600,6 @@ clients_handle_request_connect (void *cls, struct GNUNET_SERVER_Client *client, | |||
600 | 600 | ||
601 | 601 | ||
602 | /** | 602 | /** |
603 | * Client asked for a quota change for a particular peer. Process the request. | ||
604 | * | ||
605 | * @param cls unused | ||
606 | * @param client the client | ||
607 | * @param message the quota changing message | ||
608 | */ | ||
609 | static void | ||
610 | clients_handle_set_quota (void *cls, struct GNUNET_SERVER_Client *client, | ||
611 | const struct GNUNET_MessageHeader *message) | ||
612 | { | ||
613 | const struct QuotaSetMessage *qsm; | ||
614 | |||
615 | qsm = (const struct QuotaSetMessage *) message; | ||
616 | GNUNET_STATISTICS_update (GST_stats, | ||
617 | gettext_noop ("# SET QUOTA messages received"), 1, | ||
618 | GNUNET_NO); | ||
619 | #if DEBUG_TRANSPORT | ||
620 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
621 | "Received `%s' request (new quota %u) from client for peer `%4s'\n", | ||
622 | "SET_QUOTA", (unsigned int) ntohl (qsm->quota.value__), | ||
623 | GNUNET_i2s (&qsm->peer)); | ||
624 | #endif | ||
625 | GST_neighbours_set_incoming_quota (&qsm->peer, qsm->quota); | ||
626 | GNUNET_SERVER_receive_done (client, GNUNET_OK); | ||
627 | } | ||
628 | |||
629 | |||
630 | /** | ||
631 | * Take the given address and append it to the set of results sent back to | 603 | * Take the given address and append it to the set of results sent back to |
632 | * the client. | 604 | * the client. |
633 | * | 605 | * |
@@ -883,8 +855,6 @@ GST_clients_start (struct GNUNET_SERVER_Handle *server) | |||
883 | {&clients_handle_request_connect, NULL, | 855 | {&clients_handle_request_connect, NULL, |
884 | GNUNET_MESSAGE_TYPE_TRANSPORT_REQUEST_CONNECT, | 856 | GNUNET_MESSAGE_TYPE_TRANSPORT_REQUEST_CONNECT, |
885 | sizeof (struct TransportRequestConnectMessage)}, | 857 | sizeof (struct TransportRequestConnectMessage)}, |
886 | {&clients_handle_set_quota, NULL, | ||
887 | GNUNET_MESSAGE_TYPE_TRANSPORT_SET_QUOTA, sizeof (struct QuotaSetMessage)}, | ||
888 | {&clients_handle_address_lookup, NULL, | 858 | {&clients_handle_address_lookup, NULL, |
889 | GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_LOOKUP, 0}, | 859 | GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_LOOKUP, 0}, |
890 | {&clients_handle_peer_address_lookup, NULL, | 860 | {&clients_handle_peer_address_lookup, NULL, |