helics
3.3.0
src
helics
network
zmq
ZmqBroker.h
1
/*
2
Copyright (c) 2017-2022,
3
Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Sustainable
4
Energy, LLC. See the top-level NOTICE for additional details. All rights reserved.
5
SPDX-License-Identifier: BSD-3-Clause
6
*/
7
#pragma once
8
#include "../NetworkBroker.hpp"
9
10
#include <string>
11
namespace
helics
{
12
namespace
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
helics::zeromq::ZmqBrokerSS
Definition:
ZmqBroker.h:31
helics::NetworkBroker
Definition:
NetworkBroker.hpp:18
ZmqContextManager::startContext
static void startContext(const std::string &contextName=std::string{})
Definition:
ZmqContextManager.cpp:58
helics::NetworkBroker::brokerConnect
virtual bool brokerConnect() override
Definition:
NetworkBroker_impl.hpp:70
helics::zeromq::ZmqCommsSS
Definition:
ZmqCommsSS.h:26
helics::zeromq::ZmqBroker
Definition:
ZmqBroker.h:17
helics::zeromq::ZmqBroker::ZmqBroker
ZmqBroker(bool rootbroker=false) noexcept
Definition:
ZmqBroker.cpp:19
helics
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition:
AsyncFedCallInfo.hpp:14
helics::NetworkBrokerData::server_mode
ServerModeOptions server_mode
setup a server mode
Definition:
NetworkBrokerData.hpp:58
helics::zeromq::ZmqBrokerSS::ZmqBrokerSS
ZmqBrokerSS(bool rootbroker=false) noexcept
Definition:
ZmqBroker.cpp:35
helics::NetworkBroker< ZmqComms, gmlc::networking::InterfaceTypes::TCP, 1 >::netInfo
NetworkBrokerData netInfo
structure containing the networking information
Definition:
NetworkBroker.hpp:31
Generated by
1.8.17