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  ConsensusGate
 
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
 

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)
 
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

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
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
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
std::shared_ptr< const shared_model::interface::Proposal > iroha::network::getProposalUnsafe ( const OrderingEvent event)
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: