hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::network Namespace Reference

Namespaces

 detail
 

Classes

class  AsyncGrpcClient
 
class  BlockLoader
 
class  BlockLoaderImpl
 
class  BlockLoaderInit
 
class  BlockLoaderService
 
class  BlockReader
 
class  ChannelFactory
 
class  ChannelFactoryTls
 
class  ChannelPool
 
class  ChannelProvider
 
class  ClientFactory
 
class  ClientFactoryImpl
 
class  ConsensusGate
 
class  GenericClientFactory
 
struct  GrpcChannelParams
 
class  MstTransport
 
class  MstTransportGrpc
 
class  MstTransportNotification
 
class  MstTransportStub
 
struct  OrderingEvent
 
class  OrderingGate
 
class  OrderingGateNotification
 
class  OrderingGateTransport
 
class  OrderingService
 
class  OrderingServiceNotification
 
class  OrderingServiceTransport
 
class  PeerCommunicationService
 
class  PeerCommunicationServiceImpl
 
class  PeerTlsCertificatesProvider
 
class  PeerTlsCertificatesProviderRoot
 
class  PeerTlsCertificatesProviderWsv
 
class  ServerRunner
 
struct  TlsCredentials
 

Functions

void sendStateAsync (MstState const &state, shared_model::interface::types::PublicKeyHexStringView sender_key, transport::MstTransportGrpc::StubInterface &client_stub, AsyncGrpcClient< google::protobuf::Empty > &async_call, std::function< void(grpc::Status &, google::protobuf::Empty &)> on_response={})
 
template<typename Service >
grpc::ChannelArguments makeInterPeerChannelArguments (const GrpcChannelParams &params)
 
template<typename Service >
std::shared_ptr< grpc::Channel > createInsecureChannel (const shared_model::interface::types::AddressType &address, std::optional< std::reference_wrapper< GrpcChannelParams const >> maybe_params)
 
std::shared_ptr< grpc::Channel > createInsecureChannel (const shared_model::interface::types::AddressType &address, const std::string &service_full_name, std::optional< std::reference_wrapper< GrpcChannelParams const >> maybe_params)
 
template<typename Service >
std::unique_ptr< typename Service::StubInterface > createInsecureClient (const std::string &address, std::optional< std::reference_wrapper< GrpcChannelParams const >> params)
 
template<typename Service >
std::unique_ptr< typename Service::StubInterface > createInsecureClient (const std::string &ip, size_t port, std::optional< std::reference_wrapper< GrpcChannelParams const >> maybe_params)
 
std::shared_ptr< const shared_model::interface::ProposalgetProposalUnsafe (const OrderingEvent &event)
 

Detailed Description

Copyright Soramitsu Co., Ltd. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Function Documentation

◆ createInsecureChannel() [1/2]

template<typename Service >
std::shared_ptr<grpc::Channel> iroha::network::createInsecureChannel ( const shared_model::interface::types::AddressType address,
std::optional< std::reference_wrapper< GrpcChannelParams const >>  maybe_params 
)

Creates a channel

Template Parameters
Servicetype for gRPC stub, e.g. proto::Yac
Parameters
addressip address and port for connection, ipv4:port
maybe_paramsgrpc channel params
Returns
grpc channel with provided params

◆ createInsecureChannel() [2/2]

std::shared_ptr< grpc::Channel > iroha::network::createInsecureChannel ( const shared_model::interface::types::AddressType address,
const std::string &  service_full_name,
std::optional< std::reference_wrapper< GrpcChannelParams const >>  maybe_params 
)

Creates a channel

Parameters
addressip address and port to connect to, ipv4:port
service_full_namegRPC service full name, e.g. iroha.consensus.yac.proto.Yac
maybe_paramsgrpc channel params
Returns
grpc channel with provided params
Here is the call graph for this function:

◆ createInsecureClient() [1/2]

template<typename Service >
std::unique_ptr<typename Service::StubInterface> iroha::network::createInsecureClient ( const std::string &  address,
std::optional< std::reference_wrapper< GrpcChannelParams const >>  params 
)

Creates client

Template Parameters
Servicetype for gRPC stub, e.g. proto::Yac
Parameters
addressip address and port for connection, ipv4:port
maybe_paramsgrpc channel params
Returns
gRPC stub of parametrized type

◆ createInsecureClient() [2/2]

template<typename Service >
std::unique_ptr<typename Service::StubInterface> iroha::network::createInsecureClient ( const std::string &  ip,
size_t  port,
std::optional< std::reference_wrapper< GrpcChannelParams const >>  maybe_params 
)

Creates client

Template Parameters
Servicetype for gRPC stub, e.g. proto::Yac
Parameters
addressip address to connect to
portport to connect to
paramsgrpc channel params
Returns
gRPC stub of parametrized type

◆ getProposalUnsafe()

std::shared_ptr< const shared_model::interface::Proposal > iroha::network::getProposalUnsafe ( const OrderingEvent event)
Here is the caller graph for this function:

◆ makeInterPeerChannelArguments()

template<typename Service >
grpc::ChannelArguments iroha::network::makeInterPeerChannelArguments ( const GrpcChannelParams params)

Creates channel arguments for inter-peer communication.

Template Parameters
Servicetype for gRPC stub, e.g. proto::Yac
Parameters
paramsgrpc channel params
Returns
gRPC channel arguments
Here is the call graph for this function:

◆ sendStateAsync()

void iroha::network::sendStateAsync ( MstState const &  state,
shared_model::interface::types::PublicKeyHexStringView  sender_key,
transport::MstTransportGrpc::StubInterface &  client_stub,
AsyncGrpcClient< google::protobuf::Empty > &  async_call,
std::function< void(grpc::Status &, google::protobuf::Empty &)>  on_response = {} 
)
Here is the caller graph for this function: