helics 3.7.0
Loading...
Searching...
No Matches
ZmqCommsCommon.h
Go to the documentation of this file.
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
12#include <chrono>
13#include <string>
14class AsioContextManager;
15
16namespace zmq {
17class socket_t;
18}
19
20namespace helics::zeromq {
21static const std::chrono::milliseconds defaultPeriod(200);
22
24bool bindzmqSocket(zmq::socket_t& socket,
25 const std::string& address,
26 int port,
27 std::chrono::milliseconds timeout,
28 std::chrono::milliseconds period = defaultPeriod);
30std::string getZMQVersion();
31} // namespace helics::zeromq