diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-03-18 16:10:31 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-03-18 16:10:31 +0000 |
commit | 6cc556bed0898dcdb168248658574862920818da (patch) | |
tree | 1e4850a7756e0940142ff2009e0fabab1c7660bd /src/transport/plugin_transport_http_client.c | |
parent | 2bfa211933d6285ffbdc7d871e695838b5d08b9f (diff) | |
download | gnunet-6cc556bed0898dcdb168248658574862920818da.tar.gz gnunet-6cc556bed0898dcdb168248658574862920818da.zip |
transport plugin api change: split of address receive and ats updates
Diffstat (limited to 'src/transport/plugin_transport_http_client.c')
-rw-r--r-- | src/transport/plugin_transport_http_client.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c index 351687a07..062941751 100644 --- a/src/transport/plugin_transport_http_client.c +++ b/src/transport/plugin_transport_http_client.c | |||
@@ -919,9 +919,15 @@ client_receive_mst_cb (void *cls, void *client, | |||
919 | GNUNET_break (s->ats_address_network_type != ntohl (GNUNET_ATS_NET_UNSPECIFIED)); | 919 | GNUNET_break (s->ats_address_network_type != ntohl (GNUNET_ATS_NET_UNSPECIFIED)); |
920 | 920 | ||
921 | delay = s->plugin->env->receive (plugin->env->cls, &s->target, message, | 921 | delay = s->plugin->env->receive (plugin->env->cls, &s->target, message, |
922 | (const struct GNUNET_ATS_Information *) &atsi, 2, | ||
923 | s, s->addr, s->addrlen); | 922 | s, s->addr, s->addrlen); |
924 | 923 | ||
924 | plugin->env->update_address_metrics (plugin->env->cls, | ||
925 | &s->target, | ||
926 | s->addr, | ||
927 | s->addrlen, | ||
928 | s, | ||
929 | (struct GNUNET_ATS_Information *) &atsi, 2); | ||
930 | |||
925 | GNUNET_asprintf (&stat_txt, "# bytes received via %s_client", plugin->protocol); | 931 | GNUNET_asprintf (&stat_txt, "# bytes received via %s_client", plugin->protocol); |
926 | GNUNET_STATISTICS_update (plugin->env->stats, | 932 | GNUNET_STATISTICS_update (plugin->env->stats, |
927 | stat_txt, ntohs(message->size), GNUNET_NO); | 933 | stat_txt, ntohs(message->size), GNUNET_NO); |