Belle II Software light-2406-ragdoll
ZMQAddressUtils.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#pragma once
9
10#include <string>
11
12namespace Belle2 {
19 c_input,
24 };
25
28 public:
30 static std::string randomSocketName(const std::string& hostname);
32 static std::string randomSocketName();
34 static std::string getSocketAddress(const std::string& socketAddress, ZMQAddressType socketPart);
35 };
37}
Summary of some address helpers.
static std::string randomSocketName()
Generate a random socket name in the form ipc:///socketname.
static std::string getSocketAddress(const std::string &socketAddress, ZMQAddressType socketPart)
Create a full socket address for the given type from a random socket address, ba adding a suffix.
ZMQAddressType
The type of a ZMQ socket address (which socket to use)
@ c_sub
Multicast publish socket.
@ c_control
Multicast subscribe socket.
@ c_pub
Output socket.
@ c_output
Input socket.
Abstract base class for different kinds of events.
Definition: ClusterUtils.h:24