6 #ifndef IROHA_NETWORK_IMPL_HPP 7 #define IROHA_NETWORK_IMPL_HPP 10 #include "yac.grpc.pb.h" 14 #include <unordered_map> 41 ::iroha::consensus::yac::proto::Yac>> client_factory,
45 std::shared_ptr<YacNetworkNotifications> handler)
override;
48 const std::vector<VoteMessage> &state)
override;
56 ::grpc::ServerContext *context,
57 const ::iroha::consensus::yac::proto::State *request,
58 ::google::protobuf::Empty *response)
override;
66 std::weak_ptr<YacNetworkNotifications> handler_;
71 std::shared_ptr<network::AsyncGrpcClient<google::protobuf::Empty>>
77 std::unique_ptr<ClientFactory> client_factory_;
79 std::mutex stop_mutex_;
80 bool stop_requested_{
false};
89 #endif // IROHA_NETWORK_IMPL_HPP Definition: yac_network_interface.hpp:35
void stop() override
Prevent any new outgoing network activity. Be passive.
Definition: network_impl.cpp:39
std::shared_ptr< Logger > LoggerPtr
Definition: logger_fwd.hpp:22
proto::Yac Service
Definition: network_impl.hpp:34
Definition: block_query.hpp:15
Definition: network_impl.hpp:32
void sendState(const shared_model::interface::Peer &to, const std::vector< VoteMessage > &state) override
Definition: network_impl.cpp:44
void subscribe(std::shared_ptr< YacNetworkNotifications > handler) override
Definition: network_impl.cpp:34
NetworkImpl(std::shared_ptr< network::AsyncGrpcClient< google::protobuf::Empty >> async_call, std::unique_ptr< iroha::network::ClientFactory< ::iroha::consensus::yac::proto::Yac >> client_factory, logger::LoggerPtr log)
Definition: network_impl.cpp:25
Definition: on_demand_ordering_init.hpp:44
Status
Definition: status.hpp:12
Definition: mst_transport_grpc.hpp:29
grpc::Status SendState(::grpc::ServerContext *context, const ::iroha::consensus::yac::proto::State *request, ::google::protobuf::Empty *response) override
Definition: network_impl.cpp:76