gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r14632 - gnunet/src/mesh
Date: Fri, 11 Mar 2011 18:03:44 +0100

Author: bartpolot
Date: 2011-03-11 18:03:44 +0100 (Fri, 11 Mar 2011)
New Revision: 14632

Modified:
   gnunet/src/mesh/gnunet-service-mesh.c
Log:
Resolved some weird conflicts


Modified: gnunet/src/mesh/gnunet-service-mesh.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh.c       2011-03-11 17:02:22 UTC (rev 
14631)
+++ gnunet/src/mesh/gnunet-service-mesh.c       2011-03-11 17:03:44 UTC (rev 
14632)
@@ -211,6 +211,26 @@
 }
 
 /**
+ * Core handler for path creation
+ *
+ * @param cls closure
+ * @param message message
+ * @param peer peer identity this notification is about
+ * @param atsi performance data
+ *
+ */
+static int
+handle_mesh_path_create (void *cls,
+                              const struct GNUNET_PeerIdentity *peer,
+                              const struct GNUNET_MessageHeader *message,
+                              const struct GNUNET_TRANSPORT_ATS_Information
+                              *atsi)
+{
+    /* Extract path */
+    return GNUNET_OK;
+}
+
+/**
  * Core handler for mesh network traffic
  *
  * @param cls closure
@@ -228,10 +248,10 @@
 {
     if(GNUNET_MESSAGE_TYPE_MESH_DATA_GO == ntohs(message->type)) {
         /* Retransmit to next in path of tunnel identified by message */
-        return 0;
+        return GNUNET_OK;
     } else { /* GNUNET_MESSAGE_TYPE_MESH_DATA_BACK */
         /* Retransmit to previous in path of tunnel identified by message */
-        return 0;
+        return GNUNET_OK;
     }
 }
 
@@ -239,6 +259,7 @@
  * Functions to handle messages from core
  */
 static struct GNUNET_CORE_MessageHandler core_handlers[] = {
+  {&handle_mesh_path_create, NULL, GNUNET_MESSAGE_TYPE_MESH_PATH_CREATE, 0},
   {&handle_mesh_network_traffic, GNUNET_MESSAGE_TYPE_MESH_DATA_GO, 0},
   {&handle_mesh_network_traffic, GNUNET_MESSAGE_TYPE_MESH_DATA_BACK, 0},
   {NULL, 0, 0}
@@ -248,7 +269,9 @@
  * Functions to handle messages from clients
  */
 static struct GNUNET_SERVER_MessageHandler plugin_handlers[] = {
-  {&handle_mesh_path_create, NULL, GNUNET_MESSAGE_TYPE_MESH_PATH_CREATE, 0},
+  {&handle_local_path_create, NULL, GNUNET_MESSAGE_TYPE_MESH_PATH_CREATE, 0},
+  {&handle_local_network_traffic, GNUNET_MESSAGE_TYPE_MESH_DATA_GO, 0},
+  {&handle_local_network_traffic, GNUNET_MESSAGE_TYPE_MESH_DATA_BACK, 0},
   {NULL, NULL, 0, 0}
 };
 




reply via email to

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