#include <ZmqUri.hpp>
|
| std::string | scheme { "" } |
| |
| std::string | host { "" } |
| |
| std::string | port { "" } |
| |
Definition at line 21 of file ZmqUri.hpp.
◆ ZmqUri()
| dunedaq::utilities::ZmqUri::ZmqUri |
( |
std::string | connection_string | ) |
|
|
explicit |
Definition at line 19 of file ZmqUri.cpp.
20{
21 if (connection_string.find("://") == std::string::npos) {
22 throw InvalidUri(
ERS_HERE, connection_string);
23 }
24
25 scheme = connection_string.substr(0, connection_string.find(
"://"));
26 connection_string = connection_string.substr(connection_string.find("://") + 3);
27
28 if (connection_string.find(":") != std::string::npos) {
29 port = connection_string.substr(connection_string.find(
":") + 1);
30 connection_string = connection_string.substr(0, connection_string.find(":"));
31 }
32 host = connection_string;
33}
◆ get_uri_ip_addresses()
| std::vector< std::string > dunedaq::utilities::ZmqUri::get_uri_ip_addresses |
( |
| ) |
|
Definition at line 36 of file ZmqUri.cpp.
37{
40
41 for (size_t ii = 0; ii < output.size(); ++ii) {
42 output[ii] =
"tcp://" + output[ii] +
":" +
port;
43 }
44 return output;
45 } else {
47 }
48}
std::vector< std::string > get_hostname_ips(std::string hostname)
◆ to_string()
| std::string dunedaq::utilities::ZmqUri::to_string |
( |
| ) |
|
|
inline |
Definition at line 26 of file ZmqUri.hpp.
27 {
30 return tmp +
":" +
port;
31 return tmp;
32 }
◆ host
| std::string dunedaq::utilities::ZmqUri::host { "" } |
◆ port
| std::string dunedaq::utilities::ZmqUri::port { "" } |
◆ scheme
| std::string dunedaq::utilities::ZmqUri::scheme { "" } |
The documentation for this struct was generated from the following files:
- /github/workspace/dunedaq/sourcecode/utilities/include/utilities/ZmqUri.hpp
- /github/workspace/dunedaq/sourcecode/utilities/src/ZmqUri.cpp