Lookup overloads
Declared in <netbase.h>
Resolve a service string to its first corresponding service.
std::optional<CService>
Lookup(
std::string const& name,
uint16_t portDefault,
bool fAllowLookup,
DNSLookupFn dns_lookup_function = g_dns_lookup);
» more...
Resolve a service string to its corresponding service.
std::vector<CService>
Lookup(
std::string const& name,
uint16_t portDefault,
bool fAllowLookup,
unsigned int nMaxSolutions,
DNSLookupFn dns_lookup_function = g_dns_lookup);
» more...
| Name | Description |
|---|---|
| name | The service string to resolve. |
| portDefault | The port to use when the service string omits one. |
| fAllowLookup | Whether DNS lookups are permitted. |
| dns_lookup_function | The resolver used to perform the lookup. |
| nMaxSolutions | The maximum number of results we want, specifying 0 means "as many solutions as we get." |
Lookup(const std::string&, uint16_t, bool, unsigned int, DNSLookupFn) for additional parameter descriptions.