 |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
Go to the documentation of this file.
13 #include <arpa/inet.h>
20 const char *
INV=
"inv";
26 const char *
DSC=
"dsc";
27 const char *
DSF=
"dsf";
28 const char *
DSQ=
"dsq";
29 const char *
DSR=
"dsr";
62 static const char* ppszTypeName[] =
92 const static std::string allNetMessageTypes[] = {
136 const static std::vector<std::string> allNetMessageTypesVec(allNetMessageTypes, allNetMessageTypes+
ARRAYLEN(allNetMessageTypes));
173 }
else if (*p1 < ' ' || *p1 > 0x7E)
219 for (i = 1; i <
ARRAYLEN(ppszTypeName); i++) {
220 if (strType == ppszTypeName[i]) {
251 return ppszTypeName[
type];
261 return allNetMessageTypesVec;
A combination of a network address (CNetAddr) and a (TCP) port.
Bitcoin protocol message types.
const char * FINALBUDGET
The finalbudget message is used to broadcast or relay finalized budget metadata to connected peers.
const char * PING
The ping message is sent periodically to help confirm that the receiving peer is still connected.
const char * FILTERLOAD
The filterload message tells the receiving peer to filter all relayed transactions and requested merk...
const char * IX
The ix message transmits a single SwiftX transaction.
bool operator<(const CInv &a, const CInv &b)
void * memcpy(void *a, const void *b, size_t c)
ServiceFlags
nServices flags
const char * PONG
The pong message replies to a ping message, proving to the pinging node that the ponging node is stil...
const char * MNWINNER
The mnwinner message is used to relay and distribute consensus for masternode payout ordering.
const char * BUDGETVOTESYNC
The budgetvotesync message is used to request budget vote data from connected peers.
bool IsMasterNodeType() const
const char * GetCommand() const
const char * INV
The inv message (inventory message) transmits one or more inventories of objects known to the transmi...
const char * GETHEADERS
The getheaders message requests a headers message that provides block headers starting from a particu...
const char * IXLOCKVOTE
The ixlockvote message is used to reach consensus for SwiftX transaction locks.
const char * HEADERS
The headers message sends one or more block headers to a node which previously requested certain head...
const char * GETMNWINNERS
The getmnwinners message is used to request winning masternode data from connected peers.
const char * FINALBUDGETVOTE
The finalbudgetvote message is used to broadcast or relay finalized budget votes to connected peers.
size_t strnlen(const char *start, size_t max_len)
const char * FILTERCLEAR
The filterclear message tells the receiving peer to remove a previously-set bloom filter.
256-bit unsigned big integer.
const char * SENDHEADERS
Indicates that a node prefers to receive new block announcements via a "headers" message rather than ...
#define LogPrint(category,...)
const char * REJECT
The reject message informs the receiving node that one of its previous messages has been rejected.
#define MESSAGE_START_SIZE
const char * GETBLOCKS
The getblocks message requests an inv message that provides block header hashes starting from a parti...
const char * GETDATA
The getdata message requests one or more data objects from another node.
const char * NOTFOUND
The notfound message is a reply to a getdata message which requested an object the receiving node doe...
const char * ADDR
The addr (IP address) message relays connection information for peers on the network.
const char * BUDGETPROPOSAL
The budgetproposal message is used to broadcast or relay budget proposal metadata to connected peers.
const char * DSC
We are keeping these for now.
const char * BLOCK
The block message transmits a single serialized block.
const char * MEMPOOL
The mempool message requests the TXIDs of transactions that the receiving node has verified as valid ...
const char * ALERT
The alert message warns nodes of problems that may affect them or the rest of the network.
const char * TX
The tx message transmits a single transaction.
const char * BUDGETVOTE
The budgetvote message is used to broadcast or relay budget proposal votes to connected peers.
const CChainParams & Params()
Return the currently selected parameters.
const char * SYNCSTATUSCOUNT
The syncstatuscount message is used to track the layer 2 syncing process.
const std::vector< std::string > & getAllNetMessageTypes()
const char * VERACK
The verack message acknowledges a previously-received version message, informing the connecting node ...
const char * FILTERADD
The filteradd message tells the receiving peer to add a single element to a previously-set bloom filt...
const char * VERSION
The version message provides information about the transmitting node to the receiving node at the beg...
const char * MNPING
The mnping message is used to ensure a masternode is still active.
const char * MNBROADCAST
The mnbroadcast message is used to broadcast masternode startup data to connected peers.
std::string ToString() const
const char * GETADDR
The getaddr message requests an addr message from the receiving node, preferably one with lots of IP ...
const char * MERKLEBLOCK
The merkleblock message is a reply to a getdata message which requested a block using the inventory t...
std::string ToString() const