aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_server.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-03-18 16:10:31 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-03-18 16:10:31 +0000
commit6cc556bed0898dcdb168248658574862920818da (patch)
tree1e4850a7756e0940142ff2009e0fabab1c7660bd /src/transport/plugin_transport_http_server.c
parent2bfa211933d6285ffbdc7d871e695838b5d08b9f (diff)
downloadgnunet-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_server.c')
-rw-r--r--src/transport/plugin_transport_http_server.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c
index 97a28b694..ba07ee95e 100644
--- a/src/transport/plugin_transport_http_server.c
+++ b/src/transport/plugin_transport_http_server.c
@@ -1289,9 +1289,15 @@ server_receive_mst_cb (void *cls, void *client,
1289 delay = plugin->env->receive (plugin->env->cls, 1289 delay = plugin->env->receive (plugin->env->cls,
1290 &s->target, 1290 &s->target,
1291 message, 1291 message,
1292 (const struct GNUNET_ATS_Information *) &atsi, 2,
1293 s, s->addr, s->addrlen); 1292 s, s->addr, s->addrlen);
1294 1293
1294 plugin->env->update_address_metrics (plugin->env->cls,
1295 &s->target,
1296 s->addr,
1297 s->addrlen,
1298 s,
1299 (struct GNUNET_ATS_Information *) &atsi, 2);
1300
1295 GNUNET_asprintf (&stat_txt, "# bytes received via %s_server", plugin->protocol); 1301 GNUNET_asprintf (&stat_txt, "# bytes received via %s_server", plugin->protocol);
1296 GNUNET_STATISTICS_update (plugin->env->stats, 1302 GNUNET_STATISTICS_update (plugin->env->stats,
1297 stat_txt, ntohs (message->size), GNUNET_NO); 1303 stat_txt, ntohs (message->size), GNUNET_NO);