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

#include "generic_client_factory.hpp"

Collaboration diagram for iroha::network::GenericClientFactory:
Collaboration graph

Public Member Functions

 GenericClientFactory (std::unique_ptr< ChannelProvider > channel_provider)
 
template<typename Service >
iroha::expected::Result< std::unique_ptr< typename Service::StubInterface >, std::string > createClient (const shared_model::interface::Peer &peer) const
 

Constructor & Destructor Documentation

◆ GenericClientFactory()

GenericClientFactory::GenericClientFactory ( std::unique_ptr< ChannelProvider channel_provider)

Member Function Documentation

◆ createClient()

template<typename Service >
iroha::expected::Result<std::unique_ptr<typename Service::StubInterface>, std::string> iroha::network::GenericClientFactory::createClient ( const shared_model::interface::Peer peer) const
inline

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

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

The documentation for this class was generated from the following files: