-improve UDP logging
[oweals/gnunet.git] / src / rps / rps.h
index 77ce2f18fc9a8006b6fbffd18537de4e0d332d08..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
@@ -37,37 +37,6 @@ GNUNET_NETWORK_STRUCT_BEGIN
  * P2P Messages
 ***********************************************************************/
 
-/**
- * P2P Message to push own ID to other peer.
- */
-struct GNUNET_RPS_P2P_PushMessage
-{
-  /**
-   * Header including size and type in NBO
-   */
-  struct GNUNET_MessageHeader header;
-
-  /** 
-   * TODO Proof of work
-   */
-  uint64_t placeholder;
-};
-
-/**
- * P2P Message to request PeerIDs from other peer.
- */
-struct GNUNET_RPS_P2P_PullRequestMessage
-{
-  /**
-   * Header including size and type in NBO
-   */
-  struct GNUNET_MessageHeader header;
-
-  /* This probably stays empty as we just
-   * infrom the peer of our existence */
-  uint64_t placeholder;
-};
-
 /**
  * P2P Message to send PeerIDs to other peer.
  */
@@ -120,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;
 
@@ -150,12 +119,9 @@ struct GNUNET_RPS_CS_SeedMessage
   /**
    * Number of peers
    */
-  uint64_t n;
+  uint64_t num_peers;
 
-  /**
-   * Peers
-   */
-  struct GNUNET_PeerIdentity ids;
+  /* Followed by num_peers * GNUNET_PeerIdentity */
 };
 
 GNUNET_NETWORK_STRUCT_END