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

Function ResolveIP

src/test/addrman_tests.cpp:34–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34static CNetAddr ResolveIP(const std::string& ip)
35{
36 CNetAddr addr;
37 BOOST_CHECK_MESSAGE(LookupHost(ip, addr, false), strprintf("failed to resolve: %s", ip));
38 return addr;
39}
40
41static CService ResolveService(const std::string& ip, uint16_t port = 0)
42{

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.70

Calls 1

LookupHostFunction · 0.85

Tested by

no test coverage detected