Changeset View
Changeset View
Standalone View
Standalone View
src/netbase.h
Show First 20 Lines • Show All 158 Lines • ▼ Show 20 Lines | |||||
/** | /** | ||||
* Parse and resolve a specified subnet string into the appropriate internal | * Parse and resolve a specified subnet string into the appropriate internal | ||||
* representation. | * representation. | ||||
* | * | ||||
* @param strSubnet A string representation of a subnet of the form `network | * @param strSubnet A string representation of a subnet of the form `network | ||||
* address [ "/", ( CIDR-style suffix | netmask ) ]`(e.g. | * address [ "/", ( CIDR-style suffix | netmask ) ]`(e.g. | ||||
* `2001:db8::/32`, `192.0.2.0/255.255.255.0`, or `8.8.8.8`). | * `2001:db8::/32`, `192.0.2.0/255.255.255.0`, or `8.8.8.8`). | ||||
* @param ret The resulting internal representation of a subnet. | * @param subnet The resulting internal representation of a subnet. | ||||
* | * | ||||
* @returns Whether the operation succeeded or not. | * @returns Whether the operation succeeded or not. | ||||
*/ | */ | ||||
bool LookupSubNet(const std::string &strSubnet, CSubNet &subnet, | bool LookupSubNet(const std::string &strSubnet, CSubNet &subnet, | ||||
DNSLookupFn dns_lookup_function = g_dns_lookup); | DNSLookupFn dns_lookup_function = g_dns_lookup); | ||||
/** | /** | ||||
* Create a TCP socket in the given address family. | * Create a TCP socket in the given address family. | ||||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |