MCPcopy Create free account
hub / github.com/ElementsProject/elements / SetSpecial

Method SetSpecial

src/netaddress.cpp:212–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}; // namespace torv3
211
212bool CNetAddr::SetSpecial(const std::string& addr)
213{
214 if (!ValidAsCString(addr)) {
215 return false;
216 }
217
218 if (SetTor(addr)) {
219 return true;
220 }
221
222 if (SetI2P(addr)) {
223 return true;
224 }
225
226 return false;
227}
228
229bool CNetAddr::SetTor(const std::string& addr)
230{

Callers 6

DestBinToAddrFunction · 0.80
LookupInternFunction · 0.80
GetDefaultPortMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
ConsumeNetAddrFunction · 0.80

Calls 1

ValidAsCStringFunction · 0.85

Tested by 3

BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
ConsumeNetAddrFunction · 0.64