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

Function LookupNumeric

src/netbase.cpp:168–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168CService LookupNumeric(const char *pszName, int portDefault)
169{
170 CService addr;
171 // "1.2:345" will fail to resolve the ip, but will still set the port.
172 // If the ip fails to resolve, re-init the result.
173 if(!Lookup(pszName, addr, portDefault, false))
174 addr = CService();
175 return addr;
176}
177
178struct timeval MillisToTimeval(int64_t nTimeout)
179{

Callers 7

GetPeerMethod · 0.85
add_onion_cbMethod · 0.85
auth_cbMethod · 0.85
AdvertiseLocalFunction · 0.85
GetAddedNodeInfoMethod · 0.85
TestParseFunction · 0.85
validateMethod · 0.85

Calls 2

LookupFunction · 0.85
CServiceClass · 0.70

Tested by 1

TestParseFunction · 0.68