consensus_protocol.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. This file is part of GNUnet
  3. (C) 2012 Christian Grothoff (and other contributing authors)
  4. GNUnet is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published
  6. by the Free Software Foundation; either version 3, or (at your
  7. option) any later version.
  8. GNUnet is distributed in the hope that it will be useful, but
  9. WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with GNUnet; see the file COPYING. If not, write to the
  14. Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  15. Boston, MA 02111-1307, USA.
  16. */
  17. /**
  18. * @file consensus/consensus_protocol.h
  19. * @brief p2p message definitions for consensus
  20. * @author Florian Dold
  21. */
  22. #ifndef GNUNET_CONSENSUS_PROTOCOL_H
  23. #define GNUNET_CONSENSUS_PROTOCOL_H
  24. #include "platform.h"
  25. #include "gnunet_common.h"
  26. #include "gnunet_protocols.h"
  27. GNUNET_NETWORK_STRUCT_BEGIN
  28. /**
  29. * Sent as context message for set reconciliation.
  30. */
  31. struct GNUNET_CONSENSUS_RoundContextMessage
  32. {
  33. /**
  34. * Type: GNUNET_MESSAGE_TYPE_CONSENSUS_P2P_ROUND_CONTEXT
  35. */
  36. struct GNUNET_MessageHeader header;
  37. uint32_t round;
  38. uint32_t exp_repetition;
  39. uint32_t exp_subround;
  40. };
  41. GNUNET_NETWORK_STRUCT_END
  42. #endif