#include "mst_transport_grpc.hpp"
|
| | MstTransportGrpc (std::shared_ptr< network::AsyncGrpcClient< google::protobuf::Empty >> async_call, std::shared_ptr< TransportFactoryType > transaction_factory, std::shared_ptr< shared_model::interface::TransactionBatchParser > batch_parser, std::shared_ptr< shared_model::interface::TransactionBatchFactory > transaction_batch_factory, std::shared_ptr< iroha::ametsuchi::TxPresenceCache > tx_presence_cache, std::shared_ptr< Completer > mst_completer, shared_model::interface::types::PublicKeyHexStringView my_key, logger::LoggerPtr mst_state_logger, logger::LoggerPtr log, boost::optional< SenderFactory >=boost::none) |
| |
| grpc::Status | SendState (::grpc::ServerContext *context, const ::iroha::network::transport::MstState *request, ::google::protobuf::Empty *response) override |
| |
| void | subscribe (std::shared_ptr< MstTransportNotification > notification) override |
| |
| rxcpp::observable< bool > | sendState (std::shared_ptr< shared_model::interface::Peer const > to, MstState const &providing_state) override |
| |
| virtual | ~MstTransport ()=default |
| |
◆ SenderFactory
◆ TransportFactoryType
◆ MstTransportGrpc()
◆ SendState()
| grpc::Status MstTransportGrpc::SendState |
( |
::grpc::ServerContext * |
context, |
|
|
const ::iroha::network::transport::MstState * |
request, |
|
|
::google::protobuf::Empty * |
response |
|
) |
| |
|
override |
Server part of grpc SendState method call
- Parameters
-
| context | - server context with information about call |
| request | - received new MstState object |
| response | - buffer for response data, not used |
- Returns
- grpc::Status (always OK)
◆ sendState()
Share state with other peer
- Parameters
-
| to | - peer recipient of message |
| providing_state | - state for transmitting |
- Returns
- true if transmission was successful, false otherwise
Implements iroha::network::MstTransport.
◆ subscribe()
Subscribe object for receiving notifications
- Parameters
-
| notification | - object that will be notified on updates |
Implements iroha::network::MstTransport.
The documentation for this class was generated from the following files: