hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::network::AsyncGrpcClient< Response > Class Template Reference

#include "async_grpc_client.hpp"

Collaboration diagram for iroha::network::AsyncGrpcClient< Response >:
Collaboration graph

Classes

struct  AsyncClientCall
 

Public Member Functions

 AsyncGrpcClient (logger::LoggerPtr log)
 
void asyncCompleteRpc ()
 
 ~AsyncGrpcClient ()
 
template<typename F >
void Call (F &&lambda)
 

Public Attributes

grpc::CompletionQueue cq_
 
std::thread thread_
 

Detailed Description

template<typename Response>
class iroha::network::AsyncGrpcClient< Response >

Asynchronous gRPC client which does no processing of server responses

Template Parameters
Responsetype of server response

Constructor & Destructor Documentation

template<typename Response>
iroha::network::AsyncGrpcClient< Response >::AsyncGrpcClient ( logger::LoggerPtr  log)
inlineexplicit
template<typename Response>
iroha::network::AsyncGrpcClient< Response >::~AsyncGrpcClient ( )
inline

Member Function Documentation

template<typename Response>
void iroha::network::AsyncGrpcClient< Response >::asyncCompleteRpc ( )
inline

Listen to gRPC server responses

template<typename Response>
template<typename F >
void iroha::network::AsyncGrpcClient< Response >::Call ( F &&  lambda)
inline

Universal method to perform all needed sends

Template Parameters
lambdawhich must return unique pointer to ClientAsyncResponseReader<Response> object

Here is the caller graph for this function:

Member Data Documentation

template<typename Response>
grpc::CompletionQueue iroha::network::AsyncGrpcClient< Response >::cq_
template<typename Response>
std::thread iroha::network::AsyncGrpcClient< Response >::thread_

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