aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-06-29 11:40:03 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-06-29 11:40:03 +0000
commit7a3ae0e57d0eb0d56d839134ddc19b23fd2b5ba7 (patch)
tree71a617c873dd068b505a9a70a0cf4c118fc4eaf0 /src/transport/plugin_transport_http.c
parentefa03f35a02e6245adfcc6f59e6287a78204a447 (diff)
downloadgnunet-7a3ae0e57d0eb0d56d839134ddc19b23fd2b5ba7.tar.gz
gnunet-7a3ae0e57d0eb0d56d839134ddc19b23fd2b5ba7.zip
http now supports minor changes
Diffstat (limited to 'src/transport/plugin_transport_http.c')
-rw-r--r--src/transport/plugin_transport_http.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c
index a0eecb168..51eada0a2 100644
--- a/src/transport/plugin_transport_http.c
+++ b/src/transport/plugin_transport_http.c
@@ -2871,6 +2871,20 @@ http_plugin_address_to_string (void *cls,
2871 return ret; 2871 return ret;
2872} 2872}
2873 2873
2874/**
2875 * Notify transport service about address
2876 *
2877 * @param cls the plugin
2878 * @param tc unused
2879 */
2880static void
2881address_notification (void *cls,
2882 const struct GNUNET_SCHEDULER_TaskContext *tc)
2883{
2884 struct Plugin *plugin = cls;
2885
2886 GNUNET_OS_network_interfaces_list (&process_interfaces, plugin);
2887}
2874 2888
2875/** 2889/**
2876 * Exit point from the plugin. 2890 * Exit point from the plugin.
@@ -3380,9 +3394,9 @@ LIBGNUNET_PLUGIN_TRANSPORT_INIT (void *cls)
3380 } 3394 }
3381 3395
3382 plugin->peers = GNUNET_CONTAINER_multihashmap_create (10); 3396 plugin->peers = GNUNET_CONTAINER_multihashmap_create (10);
3383 GNUNET_OS_network_interfaces_list (&process_interfaces, plugin);
3384 3397
3385 GNUNET_free(component_name); 3398 GNUNET_free(component_name);
3399 GNUNET_SCHEDULER_add_now(address_notification, plugin);
3386 return api; 3400 return api;
3387} 3401}
3388 3402