helics 3.7.0
Loading...
Searching...
No Matches
ZmqBroker.h
1/*
2Copyright (c) 2017-2026,
3Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Energy
4Innovation LLC. See the top-level NOTICE for additional details. All rights reserved.
5SPDX-License-Identifier: BSD-3-Clause
6*/
7#pragma once
8#include "../NetworkBroker.hpp"
9
10#include <string>
11namespace helics {
12namespace zeromq {
13 class ZmqComms;
14 class ZmqCommsSS;
15
17 class ZmqBroker final:
18 public NetworkBroker<ZmqComms, gmlc::networking::InterfaceTypes::TCP, 1> {
19 public:
21 explicit ZmqBroker(bool rootbroker = false) noexcept;
23 explicit ZmqBroker(std::string_view brokerName);
24
25 private:
26 virtual bool brokerConnect() override;
27 };
28
29 class ZmqCommsSS;
31 class ZmqBrokerSS final:
32 public NetworkBroker<ZmqCommsSS, gmlc::networking::InterfaceTypes::TCP, 1> {
33 public:
35 explicit ZmqBrokerSS(bool rootbroker = false) noexcept;
37 explicit ZmqBrokerSS(std::string_view broker_name);
38
39 private:
40 virtual bool brokerConnect() override;
41 };
42
43} // namespace zeromq
44} // namespace helics
Definition NetworkBroker.hpp:18
Definition ZmqBroker.h:32
Definition ZmqBroker.h:18
Definition ZmqCommsSS.h:26
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition AsyncFedCallInfo.hpp:14