TARAXA
Loading...
Searching...
No Matches
taraxa::network Namespace Reference

Namespaces

namespace  tarcap
 
namespace  threadpool
 

Enumerations

enum  SubprotocolPacketType : uint32_t {
  kHighPriorityPackets = 0 , kVotePacket , kGetNextVotesSyncPacket , kVotesBundlePacket ,
  kMidPriorityPackets , kDagBlockPacket , kDagSyncPacket , kTransactionPacket ,
  kLowPriorityPackets , kStatusPacket , kGetPbftSyncPacket , kPbftSyncPacket ,
  kGetDagSyncPacket , kPillarVotePacket , kGetPillarVotesBundlePacket , kPillarVotesBundlePacket ,
  kPbftBlocksBundlePacket , kPacketCount
}
 SubprotocolPacketType is used in networking layer to differentiate packet types. More...
 

Functions

std::string convertPacketTypeToString (SubprotocolPacketType packet_type)
 

Enumeration Type Documentation

◆ SubprotocolPacketType

SubprotocolPacketType is used in networking layer to differentiate packet types.

Enumerator
kHighPriorityPackets 
kVotePacket 
kGetNextVotesSyncPacket 
kVotesBundlePacket 
kMidPriorityPackets 
kDagBlockPacket 
kDagSyncPacket 
kTransactionPacket 
kLowPriorityPackets 
kStatusPacket 
kGetPbftSyncPacket 
kPbftSyncPacket 
kGetDagSyncPacket 
kPillarVotePacket 
kGetPillarVotesBundlePacket 
kPillarVotesBundlePacket 
kPbftBlocksBundlePacket 
kPacketCount 

Function Documentation

◆ convertPacketTypeToString()

std::string taraxa::network::convertPacketTypeToString ( SubprotocolPacketType  packet_type)
inline
Parameters
packet_type
Returns
string representation of packet_type