Dash Core  0.12.2.1
P2P Digital Currency
protocol.h File Reference
#include "netaddress.h"
#include "serialize.h"
#include "uint256.h"
#include "version.h"
#include <stdint.h>
#include <string>

Go to the source code of this file.

Classes

class  CMessageHeader
 
class  CAddress
 
class  CInv
 

Namespaces

 NetMsgType
 

Macros

#define MESSAGE_START_SIZE   4
 

Enumerations

enum  ServiceFlags : uint64_t { NODE_NONE = 0, NODE_NETWORK = (1 << 0), NODE_GETUTXO = (1 << 1), NODE_BLOOM = (1 << 2) }
 
enum  {
  MSG_TX = 1, MSG_BLOCK, MSG_FILTERED_BLOCK, MSG_TXLOCK_REQUEST,
  MSG_TXLOCK_VOTE, MSG_SPORK, MSG_MASTERNODE_PAYMENT_VOTE, MSG_MASTERNODE_PAYMENT_BLOCK,
  MSG_BUDGET_VOTE, MSG_BUDGET_PROPOSAL, MSG_BUDGET_FINALIZED, MSG_BUDGET_FINALIZED_VOTE,
  MSG_MASTERNODE_QUORUM, MSG_MASTERNODE_ANNOUNCE, MSG_MASTERNODE_PING, MSG_DSTX,
  MSG_GOVERNANCE_OBJECT, MSG_GOVERNANCE_OBJECT_VOTE, MSG_MASTERNODE_VERIFY
}
 

Functions

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

Macro Definition Documentation

◆ MESSAGE_START_SIZE

#define MESSAGE_START_SIZE   4

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MSG_TX 
MSG_BLOCK 
MSG_FILTERED_BLOCK 
MSG_TXLOCK_REQUEST 
MSG_TXLOCK_VOTE 
MSG_SPORK 
MSG_MASTERNODE_PAYMENT_VOTE 
MSG_MASTERNODE_PAYMENT_BLOCK 
MSG_BUDGET_VOTE 
MSG_BUDGET_PROPOSAL 
MSG_BUDGET_FINALIZED 
MSG_BUDGET_FINALIZED_VOTE 
MSG_MASTERNODE_QUORUM 
MSG_MASTERNODE_ANNOUNCE 
MSG_MASTERNODE_PING 
MSG_DSTX 
MSG_GOVERNANCE_OBJECT 
MSG_GOVERNANCE_OBJECT_VOTE 
MSG_MASTERNODE_VERIFY 

Definition at line 342 of file protocol.h.

◆ ServiceFlags

enum ServiceFlags : uint64_t

nServices flags

Enumerator
NODE_NONE 
NODE_NETWORK 
NODE_GETUTXO 
NODE_BLOOM 

Definition at line 253 of file protocol.h.

Function Documentation

◆ getAllNetMessageTypes()

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

Definition at line 275 of file protocol.cpp.

Referenced by CNode::CNode(), and ProcessMessage().