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

Method ToStringIPPort

src/netaddress.cpp:564–571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

562}
563
564std::string CService::ToStringIPPort() const
565{
566 if (IsIPv4() || IsTor() || IsInternal()) {
567 return ToStringIP() + ":" + ToStringPort();
568 } else {
569 return "[" + ToStringIP() + "]:" + ToStringPort();
570 }
571}
572
573std::string CService::ToString() const
574{

Callers 5

AddMethod · 0.80
OpenNetworkConnectionMethod · 0.80
CNodeMethod · 0.80
getProxyInfoMethod · 0.80
GetNetworksInfoFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected