gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r23421 - in gnunet/src: include transport


From: gnunet
Subject: [GNUnet-SVN] r23421 - in gnunet/src: include transport
Date: Sat, 25 Aug 2012 16:19:21 +0200

Author: LRN
Date: 2012-08-25 16:19:21 +0200 (Sat, 25 Aug 2012)
New Revision: 23421

Modified:
   gnunet/src/include/gnunet_transport_plugin.h
   gnunet/src/transport/plugin_transport_http.c
Log:
changes to address notification strike back

Modified: gnunet/src/include/gnunet_transport_plugin.h
===================================================================
--- gnunet/src/include/gnunet_transport_plugin.h        2012-08-25 11:50:39 UTC 
(rev 23420)
+++ gnunet/src/include/gnunet_transport_plugin.h        2012-08-25 14:19:21 UTC 
(rev 23421)
@@ -155,10 +155,12 @@
  * @param addr one of the addresses of the host
  *        the specific address format depends on the transport
  * @param addrlen length of the address
+ * @pararm pluginname name of the plugin
  */
 typedef void (*GNUNET_TRANSPORT_AddressNotification) (void *cls, int 
add_remove,
                                                       const void *addr,
-                                                      size_t addrlen);
+                                                      size_t addrlen,
+                                                      const char *pluginname);
 
 
 /**

Modified: gnunet/src/transport/plugin_transport_http.c
===================================================================
--- gnunet/src/transport/plugin_transport_http.c        2012-08-25 11:50:39 UTC 
(rev 23420)
+++ gnunet/src/transport/plugin_transport_http.c        2012-08-25 14:19:21 UTC 
(rev 23421)
@@ -734,7 +734,7 @@
   GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, plugin->name,
                    "Notifying transport to add address `%s'\n", w->addr->addr);
 
-  plugin->env->notify_address (plugin->env->cls, add_remove, w->addr, 
haddrlen);
+  plugin->env->notify_address (plugin->env->cls, add_remove, w->addr, 
haddrlen, "http");
 }
 
 
@@ -757,7 +757,7 @@
 
   GNUNET_CONTAINER_DLL_remove (plugin->addr_head, plugin->addr_tail, w);
   plugin->env->notify_address (plugin->env->cls, add_remove, w->addr,
-       sizeof (struct HttpAddress) + ntohl (w->addr->addr_len));
+       sizeof (struct HttpAddress) + ntohl (w->addr->addr_len), "http");
   GNUNET_free (w->addr);
   GNUNET_free (w);
 }
@@ -1093,7 +1093,7 @@
                    "Notifying transport about external hostname address 
`%s'\n", addr);
 
   GNUNET_free (addr);
-  plugin->env->notify_address (plugin->env->cls, GNUNET_YES, eaddr, eaddr_len);
+  plugin->env->notify_address (plugin->env->cls, GNUNET_YES, eaddr, eaddr_len, 
"http");
   plugin->ext_addr = eaddr;
   plugin->ext_addr_len = eaddr_len;
 }
@@ -1447,7 +1447,7 @@
 
   if (NULL != plugin->ext_addr)
   {
-      plugin->env->notify_address (plugin->env->cls, GNUNET_NO, 
plugin->ext_addr, plugin->ext_addr_len);
+      plugin->env->notify_address (plugin->env->cls, GNUNET_NO, 
plugin->ext_addr, plugin->ext_addr_len, "http");
       GNUNET_free (plugin->ext_addr);
   }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]