/*
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
* 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.
*/
struct GNUNET_RPS_CS_ReplyMessage
{
/**
- * Type is #GNUNET_MESSAGE_TYPE_RPS_REPLY.
+ * Type is #GNUNET_MESSAGE_TYPE_RPS_CS_REPLY.
*/
struct GNUNET_MessageHeader header;
/**
* 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