24std::string
GetDNSName(
const std::string& ip,
int port, NetworkType type) {
28 snprintf(dns_name,
sizeof(dns_name),
"ipc://node_%d.ipc", port);
31 snprintf(dns_name,
sizeof(dns_name),
"tcp://0.0.0.0:%d", port);
34 snprintf(dns_name,
sizeof(dns_name),
"tcp://%s:%d", ip.data(), port);
40std::string
GetTcpUrl(
const std::string& ip,
int port) {
43 snprintf(name,
sizeof(name),
"tcp://%s:%d", ip.data(), port);
45 snprintf(name,
sizeof(name),
"tcp://%s", ip.data());
std::string GetTcpUrl(const std::string &ip, int port)
std::string GetDNSName(const std::string &ip, int port, NetworkType type)