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

#include "mst_transport_stub.hpp"

Inheritance diagram for iroha::network::MstTransportStub:
Inheritance graph
Collaboration diagram for iroha::network::MstTransportStub:
Collaboration graph

Public Member Functions

void subscribe (std::shared_ptr< MstTransportNotification >) override
 
rxcpp::observable< bool > sendState (std::shared_ptr< shared_model::interface::Peer const >, MstState const &) override
 
- Public Member Functions inherited from iroha::network::MstTransport
virtual ~MstTransport ()=default
 

Member Function Documentation

◆ sendState()

rxcpp::observable< bool > iroha::network::MstTransportStub::sendState ( std::shared_ptr< shared_model::interface::Peer const >  to,
MstState const &  providing_state 
)
overridevirtual

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

void iroha::network::MstTransportStub::subscribe ( std::shared_ptr< MstTransportNotification notification)
overridevirtual

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: