-improve UDP logging
[oweals/gnunet.git] / src / rps / rps.h
index f0f7d5461478e9a072a573dd35ce834fc17fb29e..3f76326a3664ebd58e032933b600e74262089edd 100644 (file)
@@ -1,6 +1,6 @@
 /*
       This file is part of GNUnet
-      (C) 2012-2013 Christian Grothoff (and other contributing authors)
+      Copyright (C) 2012-2013 Christian Grothoff (and other contributing authors)
 
       GNUnet is free software; you can redistribute it and/or modify
       it under the terms of the GNU General Public License as published
@@ -38,19 +38,21 @@ GNUNET_NETWORK_STRUCT_BEGIN
 ***********************************************************************/
 
 /**
- * P2P Message to push own ID to other peer.
+ * P2P Message to send PeerIDs to other peer.
  */
-struct GNUNET_RPS_P2P_PushMessage
+struct GNUNET_RPS_P2P_PullReplyMessage
 {
   /**
    * Header including size and type in NBO
    */
   struct GNUNET_MessageHeader header;
 
-  /** 
-   * TODO Proof of work
+  /**
+   * Number of PeerIDs sent
    */
-  uint64_t placeholder;
+  uint32_t num_peers GNUNET_PACKED;
+
+  /* Followed by num_peers * GNUNET_PeerIdentity */
 };
 
 
@@ -87,7 +89,7 @@ struct GNUNET_RPS_CS_RequestMessage
 struct GNUNET_RPS_CS_ReplyMessage
 {
   /**
-   * Type is #GNUNET_MESSAGE_TYPE_RPS_REPLY.
+   * Type is #GNUNET_MESSAGE_TYPE_RPS_CS_REPLY.
    */
   struct GNUNET_MessageHeader header;