aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-04-27 13:14:57 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-04-27 13:14:57 +0000
commita689f1c66d2663ab1f3e6ec6347707612908d25c (patch)
treea89b351462ebcfef1829aa56005e999ecfc70f1b /src/transport/plugin_transport_http.c
parent5ac41046becd09673549fb42f4b387ed847c507d (diff)
downloadgnunet-a689f1c66d2663ab1f3e6ec6347707612908d25c.tar.gz
gnunet-a689f1c66d2663ab1f3e6ec6347707612908d25c.zip
-stat counter for http
Diffstat (limited to 'src/transport/plugin_transport_http.c')
-rw-r--r--src/transport/plugin_transport_http.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c
index fb06bd7f5..1078b541a 100644
--- a/src/transport/plugin_transport_http.c
+++ b/src/transport/plugin_transport_http.c
@@ -772,7 +772,7 @@ http_plugin_send (void *cls,
772 { 772 {
773#if DEBUG_HTTP 773#if DEBUG_HTTP
774 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name, 774 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name,
775 "Using outbound client session %p to send to `%session'\n", session, 775 "Using outbound client session %p to send to `%s'\n", session,
776 GNUNET_i2s (&session->target)); 776 GNUNET_i2s (&session->target));
777#endif 777#endif
778 778
@@ -783,7 +783,7 @@ http_plugin_send (void *cls,
783 { 783 {
784#if DEBUG_HTTP 784#if DEBUG_HTTP
785 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name, 785 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name,
786 "Using inbound server %p session to send to `%session'\n", session, 786 "Using inbound server %p session to send to `%s'\n", session,
787 GNUNET_i2s (&session->target)); 787 GNUNET_i2s (&session->target));
788#endif 788#endif
789 789
@@ -1477,6 +1477,8 @@ LIBGNUNET_PLUGIN_TRANSPORT_INIT (void *cls)
1477 1477
1478 plugin = GNUNET_malloc (sizeof (struct Plugin)); 1478 plugin = GNUNET_malloc (sizeof (struct Plugin));
1479 plugin->env = env; 1479 plugin->env = env;
1480 plugin->outbound_sessions = 0;
1481 plugin->inbound_sessions = 0;
1480 api = GNUNET_malloc (sizeof (struct GNUNET_TRANSPORT_PluginFunctions)); 1482 api = GNUNET_malloc (sizeof (struct GNUNET_TRANSPORT_PluginFunctions));
1481 api->cls = plugin; 1483 api->cls = plugin;
1482 api->disconnect = &http_plugin_disconnect; 1484 api->disconnect = &http_plugin_disconnect;