MCPcopy Create free account
hub / github.com/LUX-Core/lux / LookupHost

Function LookupHost

src/netbase.cpp:193–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193bool LookupHost(const char* pszName, std::vector<CNetAddr>& vIP, unsigned int nMaxSolutions, bool fAllowLookup)
194{
195 std::string strHost(pszName);
196 if (strHost.empty())
197 return false;
198 if (boost::algorithm::starts_with(strHost, "[") && boost::algorithm::ends_with(strHost, "]")) {
199 strHost = strHost.substr(1, strHost.size() - 2);
200 }
201
202 return LookupIntern(strHost.c_str(), vIP, nMaxSolutions, fAllowLookup);
203}
204
205bool Lookup(const char* pszName, std::vector<CService>& vAddr, int portDefault, bool fAllowLookup, unsigned int nMaxSolutions)
206{

Callers 4

CNetAddrMethod · 0.85
CSubNetMethod · 0.85
ThreadDNSAddressSeedFunction · 0.85
DiscoverFunction · 0.85

Calls 3

LookupInternFunction · 0.85
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected