Crate bitcoin_dns

source ·

Structs

Functions

  • | Resolve a service string to its first | corresponding service. | | ———– | @note | | see Lookup(const std::string&, std::vector&, | uint16_t, bool, unsigned int, DNSLookupFn) | for additional parameter descriptions. |
  • | Resolve a host string to its first corresponding | network address. | | ———– | @note | | see LookupHost(const std::string&, | std::vector&, uint16_t, | bool, DNSLookupFn) for additional | parameter descriptions. |
  • | Resolve a host string to its corresponding | network addresses. | | ———– | @param name | | The string representing a host. Could | be a name or a numerical | | IP address (IPv6 addresses in their | bracketed form are allowed). | ––––– | @param[out] vIP | | The resulting network addresses to | which the specified host string resolved. | | ———– | @return | | Whether or not the specified host string | successfully resolved to any resulting | network addresses. @see Lookup(const | std::string&, std::vector&, | uint16_t, bool, unsigned int, DNSLookupFn) | for additional parameter descriptions. |
  • | Resolve a service string to its corresponding | service. | | ———– | @param name | | The string representing a service. | Could be a name or a numerical IP address | (IPv6 addresses should be in their disambiguated | bracketed form), optionally followed | by a uint16_t port number. (e.g. example.com:8333 | or [2001:db8:85a3:8d3:1319:8a2e:370:7348]:420) | ––––– | @param[out] vAddr | | The resulting services to which the | specified service string resolved. | ––––– | @param portDefault | | The default port for resulting services | if not specified by the service string. | ––––– | @param fAllowLookup | | Whether or not hostname lookups are | permitted. If yes, external queries | may be performed. | ––––– | @param nMaxSolutions | | The maximum number of results we want, | specifying 0 means “as many solutions | as we get.” | | ———– | @return | | Whether or not the service string successfully | resolved to any resulting services. |
  • | Resolve a service string with a numeric | IP to its first corresponding service. | | ———– | @note | | see Lookup(const std::string&, std::vector&, | uint16_t, bool, unsigned int, DNSLookupFn) | for additional parameter descriptions. | | ———– | @return | | The resulting CService if the resolution | was successful, [::]:0 otherwise. |

Type Definitions