gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r34828 - gnunet/src/rps


From: gnunet
Subject: [GNUnet-SVN] r34828 - gnunet/src/rps
Date: Wed, 7 Jan 2015 00:50:59 +0100

Author: ch3
Date: 2015-01-07 00:50:59 +0100 (Wed, 07 Jan 2015)
New Revision: 34828

Modified:
   gnunet/src/rps/rps.h
Log:
changes to rps.h

Modified: gnunet/src/rps/rps.h
===================================================================
--- gnunet/src/rps/rps.h        2015-01-06 23:49:57 UTC (rev 34827)
+++ gnunet/src/rps/rps.h        2015-01-06 23:50:59 UTC (rev 34828)
@@ -81,7 +81,7 @@
   /**
    * Number of PeerIDs sent
    */
-  uint64_t num_peers GNUNET_PACKED;
+  uint32_t num_peers GNUNET_PACKED;
 
   /* Followed by num_peers * GNUNET_PeerIdentity */
 };
@@ -103,14 +103,15 @@
   struct GNUNET_MessageHeader header;
 
   /**
-   * Identifyer of the message.
+   * Number of random peer requested
    */
-  uint64_t n;
+  uint32_t num_peers GNUNET_PACKED; 
 
   /**
-   * Number of random peer requested
+   * Identifyer of the message.
    */
-  uint64_t num_peers GNUNET_PACKED;
+  uint64_t n GNUNET_PACKED;
+
 };
 
 /**
@@ -119,7 +120,7 @@
 struct GNUNET_RPS_CS_ReplyMessage
 {
   /**
-   * Header including size and type in NBO
+   * Type is #GNUNET_MESSAGE_TYPE_RPS_REPLY.
    */
   struct GNUNET_MessageHeader header;
 
@@ -142,6 +143,11 @@
 struct GNUNET_RPS_CS_SeedMessage
 {
   /**
+   * Header including size and type in NBO
+   */
+  struct GNUNET_MessageHeader header;
+
+  /**
    * Number of peers
    */
   uint64_t n;
@@ -149,7 +155,7 @@
   /**
    * Peers
    */
-  struct GNUNET_PeerIdentity *ids;
+  struct GNUNET_PeerIdentity ids;
 };
 
 GNUNET_NETWORK_STRUCT_END




reply via email to

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