gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r32191 - gnunet/src/mesh
Date: Tue, 4 Feb 2014 13:36:30 +0100

Author: bartpolot
Date: 2014-02-04 13:36:30 +0100 (Tue, 04 Feb 2014)
New Revision: 32191

Modified:
   gnunet/src/mesh/gnunet-service-mesh_peer.c
   gnunet/src/mesh/gnunet-service-mesh_peer.h
Log:
- add hello messages to peers

Modified: gnunet/src/mesh/gnunet-service-mesh_peer.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_peer.c  2014-02-04 12:36:29 UTC (rev 
32190)
+++ gnunet/src/mesh/gnunet-service-mesh_peer.c  2014-02-04 12:36:30 UTC (rev 
32191)
@@ -159,6 +159,11 @@
    * How many messages are in the queue to this peer.
    */
   unsigned int queue_n;
+
+  /**
+   * Hello message.
+   */
+  const struct GNUNET_HELLO_Message* hello;
 };
 
 
@@ -1440,19 +1445,6 @@
 
 
 /**
- * Set tunnel.
- *
- * @param peer Peer.
- * @param t Tunnel.
- */
-void
-GMP_set_tunnel (struct MeshPeer *peer, struct MeshTunnel3 *t)
-{
-  peer->tunnel = t;
-}
-
-
-/**
  * Chech whether there is a direct (core level)  connection to peer.
  *
  * @param peer Peer to check.
@@ -1815,6 +1807,19 @@
 
 
 /**
+ * Set tunnel.
+ *
+ * @param peer Peer.
+ * @param t Tunnel.
+ */
+void
+GMP_set_tunnel (struct MeshPeer *peer, struct MeshTunnel3 *t)
+{
+  peer->tunnel = t;
+}
+
+
+/**
  * Get the tunnel towards a peer.
  *
  * @param peer Peer to get from.
@@ -1829,6 +1834,33 @@
 
 
 /**
+ * Set the hello message.
+ *
+ * @param peer Peer whose message to set.
+ * @param hello Hello message.
+ */
+void
+GMP_set_hello (struct MeshPeer *peer, const struct GNUNET_HELLO_Message *hello)
+{
+  peer->hello = hello;
+}
+
+
+/**
+ * Get the hello message.
+ *
+ * @param peer Peer whose message to get.
+ *
+ * @return Hello message.
+ */
+const struct GNUNET_HELLO_Message *
+GMP_get_hello (struct MeshPeer *peer)
+{
+  return peer->hello;
+}
+
+
+/**
  * Count the number of known paths toward the peer.
  *
  * @param peer Peer to get path info.

Modified: gnunet/src/mesh/gnunet-service-mesh_peer.h
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_peer.h  2014-02-04 12:36:29 UTC (rev 
32190)
+++ gnunet/src/mesh/gnunet-service-mesh_peer.h  2014-02-04 12:36:30 UTC (rev 
32191)
@@ -319,6 +319,25 @@
 GMP_get_tunnel (const struct MeshPeer *peer);
 
 /**
+ * Set the hello message.
+ *
+ * @param peer Peer whose message to set.
+ * @param hello Hello message.
+ */
+void
+GMP_set_hello (struct MeshPeer *peer, const struct GNUNET_HELLO_Message 
*hello);
+
+/**
+ * Get the hello message.
+ *
+ * @param peer Peer whose message to get.
+ *
+ * @return Hello message.
+ */
+const struct GNUNET_HELLO_Message *
+GMP_get_hello (struct MeshPeer *peer);
+
+/**
  * Count the number of known paths toward the peer.
  *
  * @param peer Peer to get path info.




reply via email to

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