Fabcoin Core  0.16.2
P2P Digital Currency
Classes | Namespaces | 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
 Fabcoin protocol message types.
 

Enumerations

enum  ServiceFlags : uint64_t {
  NODE_NONE = 0, NODE_NETWORK = (1 << 0), NODE_GETUTXO = (1 << 1), NODE_BLOOM = (1 << 2),
  NODE_WITNESS = (1 << 3), NODE_XTHIN = (1 << 4)
}
 nServices flags More...
 
enum  GetDataMsg {
  UNDEFINED = 0, MSG_TX = 1, MSG_BLOCK = 2, MSG_FILTERED_BLOCK = 3,
  MSG_CMPCT_BLOCK = 4, MSG_WITNESS_BLOCK = MSG_BLOCK | MSG_WITNESS_FLAG, MSG_WITNESS_TX = MSG_TX | MSG_WITNESS_FLAG, MSG_FILTERED_WITNESS_BLOCK = MSG_FILTERED_BLOCK | MSG_WITNESS_FLAG
}
 getdata / inv message types. More...
 

Functions

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

Variables

const uint32_t MSG_WITNESS_FLAG = 1 << 30
 getdata message type flags More...
 
const uint32_t MSG_TYPE_MASK = 0xffffffff >> 2
 

Enumeration Type Documentation

enum GetDataMsg

getdata / inv message types.

These numbers are defined by the protocol. When adding a new value, be sure to mention it in the respective BIP.

Enumerator
UNDEFINED 
MSG_TX 
MSG_BLOCK 
MSG_FILTERED_BLOCK 

Defined in BIP37.

MSG_CMPCT_BLOCK 

Defined in BIP152.

MSG_WITNESS_BLOCK 

Defined in BIP144.

MSG_WITNESS_TX 

Defined in BIP144.

MSG_FILTERED_WITNESS_BLOCK 

Definition at line 324 of file protocol.h.

enum ServiceFlags : uint64_t

nServices flags

Enumerator
NODE_NONE 
NODE_NETWORK 
NODE_GETUTXO 
NODE_BLOOM 
NODE_WITNESS 
NODE_XTHIN 

Definition at line 249 of file protocol.h.

Function Documentation

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

Definition at line 187 of file protocol.cpp.

Here is the caller graph for this function:

Variable Documentation

const uint32_t MSG_TYPE_MASK = 0xffffffff >> 2

Definition at line 318 of file protocol.h.

const uint32_t MSG_WITNESS_FLAG = 1 << 30

getdata message type flags

Definition at line 317 of file protocol.h.