Gossip 1.1
Public Member Functions | Public Attributes | List of all members
gossip::server::GossipPeerNode::AsyncClientCall< Input, Output > Struct Template Reference

#include <GossipPeerNode.h>

Public Member Functions

 AsyncClientCall ()
 Constructor of AsyncClientCall. Construct all objects needed in async rpc.
 
 ~AsyncClientCall ()
 Destructor of AsyncClientCall. Release all objects needed in async rpc.
 
void start ()
 Start async rpc.
 
void retry (GossipPeerNode *node)
 Retry async rpc.
 

Public Attributes

Input * input_
 The input of rpc.
 
Output * reply_
 The output of rpc.
 
grpc::ClientContext context_
 The context of rpc.
 
grpc::Status status_
 The status of rpc.
 
std::unique_ptr< grpc::ClientAsyncResponseReader< Output > > reader_
 rpc result reader
 
std::function< void()> cb_ = {}
 function to handle rpc output
 
std::function< void(GossipPeerNode *)> retry_ = {}
 retry function
 

Detailed Description

template<class Input, class Output>
struct gossip::server::GossipPeerNode::AsyncClientCall< Input, Output >

Class AsyncClientCall is used to handle async rpc request. All objects used in async rpc is managed by this class.

Template Parameters
InputInput type of async rpc
OutputOutput type of async rpc

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