PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Classes | Namespaces | Macros | Enumerations | Functions | Variables
protocol.h File Reference
#include "netaddress.h"
#include "serialize.h"
#include "uint256.h"
#include "version.h"
#include <stdint.h>
#include <string>
Include dependency graph for protocol.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CMessageHeader
 Message header. More...
 
class  CAddress
 A CService with information about it as peer. More...
 
class  CInv
 inv message data More...
 

Namespaces

 NetMsgType
 Bitcoin protocol message types.
 

Macros

#define MESSAGE_START_SIZE   4
 

Enumerations

enum  ServiceFlags : uint64_t { NODE_NONE = 0, NODE_NETWORK = (1 << 0), NODE_BLOOM = (1 << 2), NODE_BLOOM_WITHOUT_MN = (1 << 4) }
 nServices flags More...
 
enum  {
  MSG_TX = 1, MSG_BLOCK, MSG_FILTERED_BLOCK, MSG_TXLOCK_REQUEST,
  MSG_TXLOCK_VOTE, MSG_MASTERNODE_WINNER, MSG_MASTERNODE_SCANNING_ERROR, MSG_BUDGET_VOTE,
  MSG_BUDGET_PROPOSAL, MSG_BUDGET_FINALIZED, MSG_BUDGET_FINALIZED_VOTE, MSG_MASTERNODE_QUORUM,
  MSG_MASTERNODE_ANNOUNCE, MSG_MASTERNODE_PING, MSG_DSTX
}
 

Functions

const std::vector< std::string > & getAllNetMessageTypes ()
 

Variables

const char * NetMsgType::SPORK
 The spork message is used to send spork values to connected peers. More...
 
const char * NetMsgType::GETSPORKS
 The getsporks message is used to request spork data from connected peers. More...
 

Macro Definition Documentation

◆ MESSAGE_START_SIZE

#define MESSAGE_START_SIZE   4

Definition at line 21 of file protocol.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MSG_TX 
MSG_BLOCK 
MSG_FILTERED_BLOCK 
MSG_TXLOCK_REQUEST 
MSG_TXLOCK_VOTE 
MSG_MASTERNODE_WINNER 
MSG_MASTERNODE_SCANNING_ERROR 
MSG_BUDGET_VOTE 
MSG_BUDGET_PROPOSAL 
MSG_BUDGET_FINALIZED 
MSG_BUDGET_FINALIZED_VOTE 
MSG_MASTERNODE_QUORUM 
MSG_MASTERNODE_ANNOUNCE 
MSG_MASTERNODE_PING 
MSG_DSTX 

Definition at line 387 of file protocol.h.

◆ ServiceFlags

enum ServiceFlags : uint64_t

nServices flags

Enumerator
NODE_NONE 
NODE_NETWORK 
NODE_BLOOM 
NODE_BLOOM_WITHOUT_MN 

Definition at line 296 of file protocol.h.

Function Documentation

◆ getAllNetMessageTypes()

const std::vector<std::string>& getAllNetMessageTypes ( )

Definition at line 259 of file protocol.cpp.