WrappedGetAddrInfo

Wrapper for getaddrinfo(3). Do not use directly: call Lookup/LookupHost/LookupNumeric/LookupSubNet.

Synopsis

Declared in <netbase.h>

std::vector<CNetAddr>
WrappedGetAddrInfo(
    std::string const& name,
    bool allow_lookup);

Return Value

The resolved network addresses.

Parameters

NameDescription
nameThe host name or numeric address to resolve.
allow_lookupWhether DNS lookups are permitted.