MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / ToStringIPPort

Method ToStringIPPort

src/netbase.cpp:1019–1025  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1017string CService::ToStringPort() const { return strprintf("%u", port); }
1018
1019string CService::ToStringIPPort() const {
1020 if (IsIPv4() || IsTor()) {
1021 return ToStringIP() + ":" + ToStringPort();
1022 } else {
1023 return "[" + ToStringIP() + "]:" + ToStringPort();
1024 }
1025}
1026
1027string CService::ToString() const { return ToStringIPPort(); }
1028

Callers 5

OpenNetworkConnectionFunction · 0.80
CNodeMethod · 0.80
AddFunction · 0.80
getinfoFunction · 0.80
getnetworkinfoFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected