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

Namespaces

 details
 

Classes

class  AsyncGrpcClient
 
class  BlockLoader
 
class  BlockLoaderImpl
 
class  BlockLoaderInit
 
class  BlockLoaderService
 
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
 
class  OnDemandOrderingInit
 
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 (const shared_model::interface::Peer &to, iroha::ConstRefState state, const shared_model::crypto::PublicKey &sender_key, AsyncGrpcClient< google::protobuf::Empty > &async_call)
 
std::unique_ptr< GrpcChannelParamsgetDefaultChannelParams ()
 
grpc::ChannelArguments makeChannelArguments (const std::set< std::string > &services, const GrpcChannelParams &params)
 
template<typename Service >
grpc::ChannelArguments makeChannelArguments (const GrpcChannelParams &params)
 
template<typename Service >
std::unique_ptr< typename Service::StubInterface > createInsecureClient (const std::string &address, const GrpcChannelParams &params)
 
template<typename Service >
std::unique_ptr< typename Service::StubInterface > createInsecureClient (const std::string &ip, size_t port, const GrpcChannelParams &params)
 
std::shared_ptr< grpc::Channel > createInsecureChannel (const shared_model::interface::types::AddressType &address, const std::string &service_full_name, const GrpcChannelParams &params)
 
template<typename T >
auto createClientWithCredentials (const grpc::string &address, std::shared_ptr< grpc::ChannelCredentials > credentials)
 
template<typename T >
auto createClient (const grpc::string &address)
 
template<typename T >
std::unique_ptr< typename T::Stub > createSecureClient (const grpc::string &address, const std::string &root_certificate)
 
std::shared_ptr< const shared_model::interface::ProposalgetProposalUnsafe (const OrderingEvent &event)
 

Function Documentation

◆ createClient()

template<typename T >
auto iroha::network::createClient ( const grpc::string &  address)

Creates client which is capable of sending and receiving messages of INT_MAX bytes size

Template Parameters
Ttype for gRPC stub, e.g. proto::Yac
Parameters
addressip address for connection, ipv4:port
Returns
gRPC stub of parametrized type

◆ createClientWithCredentials()

template<typename T >
auto iroha::network::createClientWithCredentials ( const grpc::string &  address,
std::shared_ptr< grpc::ChannelCredentials >  credentials 
)

Creates client with specified credentials, which is capable of sending and receiving messages of INT_MAX bytes size with retry policy (see details::getChannelArguments()).

Template Parameters
Ttype for gRPC stub, e.g. proto::Yac
Parameters
addressip address for connection, ipv4:port
credentialscredentials for the gRPC channel
Returns
gRPC stub of parametrized type

◆ createInsecureChannel()

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

Creates client

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

◆ createInsecureClient() [1/2]

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

Creates client

Template Parameters
Servicetype for gRPC stub, e.g. proto::Yac
Parameters
addressip address and port for connection, ipv4:port
paramsgrpc channel params
Returns
gRPC stub of parametrized type
Here is the call graph for this function:

◆ createInsecureClient() [2/2]

template<typename Service >
std::unique_ptr<typename Service::StubInterface> iroha::network::createInsecureClient ( const std::string &  ip,
size_t  port,
const GrpcChannelParams 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
Here is the call graph for this function:

◆ createSecureClient()

template<typename T >
std::unique_ptr<typename T::Stub> iroha::network::createSecureClient ( const grpc::string &  address,
const std::string &  root_certificate 
)

Creates secure client which is capable of sending and receiving messages of INT_MAX bytes size

Template Parameters
Ttype for gRPC stub, e.g. proto::Yac
Parameters
addressip address for connection, ipv4:port
root_certificateroot certificate for the server's CA
Returns
gRPC stub of parametrized type

◆ getDefaultChannelParams()

std::unique_ptr< GrpcChannelParams > iroha::network::getDefaultChannelParams ( )

Creates client params which enable sending and receiving messages of INT_MAX bytes size with retries (see implementation for details).

◆ getProposalUnsafe()

std::shared_ptr< const shared_model::interface::Proposal > iroha::network::getProposalUnsafe ( const OrderingEvent event)

◆ makeChannelArguments() [1/2]

grpc::ChannelArguments iroha::network::makeChannelArguments ( const std::set< std::string > &  services,
const GrpcChannelParams params 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ makeChannelArguments() [2/2]

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

Creates channel arguments corresponding to provided params.

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 ( const shared_model::interface::Peer to,
iroha::ConstRefState  state,
const shared_model::crypto::PublicKey sender_key,
AsyncGrpcClient< google::protobuf::Empty > &  async_call 
)
Here is the call graph for this function: