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