gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r14940 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r14940 - gnunet/src/mesh
Date: Sun, 10 Apr 2011 13:22:35 +0200

Author: toelke
Date: 2011-04-10 13:22:35 +0200 (Sun, 10 Apr 2011)
New Revision: 14940

Modified:
   gnunet/src/mesh/mesh_api.c
Log:
send hello to self

Modified: gnunet/src/mesh/mesh_api.c
===================================================================
--- gnunet/src/mesh/mesh_api.c  2011-04-10 11:22:34 UTC (rev 14939)
+++ gnunet/src/mesh/mesh_api.c  2011-04-10 11:22:35 UTC (rev 14940)
@@ -181,6 +181,17 @@
              const struct GNUNET_TRANSPORT_ATS_Information *atsi)
 {
   struct GNUNET_MESH_Handle *handle = cls;
+
+  /* Send a hello to this peer */
+  GNUNET_CORE_notify_transmit_ready(handle->core,
+                                    GNUNET_NO,
+                                    42,
+                                    GNUNET_TIME_UNIT_SECONDS,
+                                    peer,
+                                    sizeof(struct GNUNET_MessageHeader) + 
handle->hello_message_size,
+                                    &send_hello_message,
+                                    cls);
+
   /* Check for connect-to-self-message, which we ignore */
   if (0 ==
       memcmp (peer, &handle->myself, sizeof (struct GNUNET_PeerIdentity)))
@@ -220,15 +231,6 @@
       else
        tunnel = tunnel->next;
     }
-  GNUNET_CORE_notify_transmit_ready(handle->core,
-                                    GNUNET_NO,
-                                    42,
-                                    GNUNET_TIME_UNIT_SECONDS,
-                                    peer,
-                                    sizeof(struct GNUNET_MessageHeader) + 
handle->hello_message_size,
-                                    &send_hello_message,
-                                    cls);
-
 }
 
 /**




reply via email to

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