CCF
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Enumerations | Functions
node_types.h File Reference
#include "ccf/crypto/sha256_hash.h"
#include "ccf/frame_format.h"
#include "ccf/tx_id.h"
#include "ds/ring_buffer_types.h"
#include <cstdint>
#include <limits>

Go to the source code of this file.

Classes

struct  ccf::ChannelHeader
 
struct  ccf::ForwardedHeader_v1
 
struct  ccf::ForwardedHeader_v2
 
struct  ccf::ForwardedCommandHeader_v3
 
struct  ccf::ForwardedResponseHeader_v3
 
struct  ccf::MessageHash
 

Namespaces

namespace  ccf
 

Typedefs

using ccf::Node2NodeMsg = uint64_t
 

Enumerations

enum  ccf::NodeMsgType : Node2NodeMsg { ccf::channel_msg = 0 , ccf::consensus_msg , ccf::forwarded_msg }
 
enum  ccf::ChannelMsg : Node2NodeMsg { ccf::key_exchange_init = 0 , ccf::key_exchange_response , ccf::key_exchange_final }
 
enum  ccf::ForwardedMsg : Node2NodeMsg {
  ccf::forwarded_cmd_v1 = 0 , ccf::forwarded_response_v1 , ccf::forwarded_cmd_v2 , ccf::forwarded_response_v2 ,
  ccf::forwarded_cmd_v3 , ccf::forwarded_response_v3
}
 
enum  : ringbuffer::Message { ccf::DEFINE_RINGBUFFER_MSG_TYPE =(associate_node_address) , ccf::DEFINE_RINGBUFFER_MSG_TYPE =(associate_node_address) , ccf::DEFINE_RINGBUFFER_MSG_TYPE =(associate_node_address) }
 Node-to-node related ringbuffer messages. More...
 

Functions

 DECLARE_RINGBUFFER_MESSAGE_PAYLOAD (ccf::associate_node_address, ccf::NodeId::Value, std::string, std::string)
 
 DECLARE_RINGBUFFER_MESSAGE_PAYLOAD (ccf::node_inbound, ccf::NodeMsgType, ccf::NodeId::Value, serializer::ByteRange)
 
 DECLARE_RINGBUFFER_MESSAGE_PAYLOAD (ccf::node_outbound, ccf::NodeId::Value, ccf::NodeMsgType, ccf::NodeId::Value, serializer::ByteRange)
 
 DECLARE_RINGBUFFER_MESSAGE_PAYLOAD (ccf::close_node_outbound, ccf::NodeId::Value)
 

Function Documentation

◆ DECLARE_RINGBUFFER_MESSAGE_PAYLOAD() [1/4]

DECLARE_RINGBUFFER_MESSAGE_PAYLOAD ( ccf::associate_node_address  ,
ccf::NodeId::Value  ,
std::string  ,
std::string   
)

◆ DECLARE_RINGBUFFER_MESSAGE_PAYLOAD() [2/4]

DECLARE_RINGBUFFER_MESSAGE_PAYLOAD ( ccf::close_node_outbound  ,
ccf::NodeId::Value   
)

◆ DECLARE_RINGBUFFER_MESSAGE_PAYLOAD() [3/4]

DECLARE_RINGBUFFER_MESSAGE_PAYLOAD ( ccf::node_inbound  ,
ccf::NodeMsgType  ,
ccf::NodeId::Value  ,
serializer::ByteRange   
)

◆ DECLARE_RINGBUFFER_MESSAGE_PAYLOAD() [4/4]

DECLARE_RINGBUFFER_MESSAGE_PAYLOAD ( ccf::node_outbound  ,
ccf::NodeId::Value  ,
ccf::NodeMsgType  ,
ccf::NodeId::Value  ,
serializer::ByteRange   
)