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

Function LookupHost

src/netbase.cpp:114–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114bool LookupHost(const char* pszName, vector<CNetAddr>& vIP, unsigned int nMaxSolutions, bool fAllowLookup) {
115 string strHost(pszName);
116 if (strHost.empty())
117 return false;
118 if (boost::algorithm::starts_with(strHost, "[") && boost::algorithm::ends_with(strHost, "]")) {
119 strHost = strHost.substr(1, strHost.size() - 2);
120 }
121
122 return LookupIntern(strHost.c_str(), vIP, nMaxSolutions, fAllowLookup);
123}
124
125bool LookupHost(const char* pszName, CNetAddr& addr, bool fAllowLookup) {
126 std::vector<CNetAddr> vIP;

Callers 6

LookupHostNumericFunction · 0.85
LookupSubNetFunction · 0.85
CNetAddrMethod · 0.85
ThreadDNSAddressSeedFunction · 0.85
DiscoverFunction · 0.85
InitHTTPAllowListFunction · 0.85

Calls 3

LookupInternFunction · 0.85
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected