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

Function LookupHost

src/netbase.cpp:118–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118bool LookupHost(const char *pszName, std::vector<CNetAddr>& vIP, unsigned int nMaxSolutions, bool fAllowLookup)
119{
120 std::string strHost(pszName);
121 if (strHost.empty())
122 return false;
123 if (strHost.front() == '[' && strHost.back() == ']') {
124 strHost = strHost.substr(1, strHost.size() - 2);
125 }
126
127 return LookupIntern(strHost.c_str(), vIP, nMaxSolutions, fAllowLookup);
128}
129
130bool LookupHost(const char *pszName, CNetAddr& addr, bool fAllowLookup)
131{

Callers 9

InitHTTPAllowListFunction · 0.85
LookupSubNetFunction · 0.85
ThreadMapPortFunction · 0.85
ThreadDNSAddressSeedMethod · 0.85
DiscoverFunction · 0.85
SerializeMethod · 0.85
ResolveIPFunction · 0.85
ResolveIPFunction · 0.85
setbanFunction · 0.85

Calls 3

LookupInternFunction · 0.85
emptyMethod · 0.45
sizeMethod · 0.45

Tested by 3

SerializeMethod · 0.68
ResolveIPFunction · 0.68
ResolveIPFunction · 0.68