mirror of
https://github.com/curl/curl.git
synced 2026-08-25 08:13:31 +03:00
Merged existing IPv4 and IPv6 Curl_ip2addr functions into a single one
which now also takes a protocol address family argument.
This commit is contained in:
parent
2903a5c050
commit
a0ef686c54
10 changed files with 150 additions and 217 deletions
|
|
@ -104,11 +104,6 @@
|
|||
#define ares_destroy(x) do {} while(0)
|
||||
#endif
|
||||
|
||||
#if defined(CURLRES_IPV6) && defined(CURLRES_ARES)
|
||||
Curl_addrinfo *Curl_ip2addr6(struct in6_addr *in,
|
||||
const char *hostname, int port);
|
||||
#endif
|
||||
|
||||
struct addrinfo;
|
||||
struct hostent;
|
||||
struct SessionHandle;
|
||||
|
|
@ -224,10 +219,6 @@ CURLcode Curl_addrinfo6_callback(void *arg,
|
|||
Curl_addrinfo *ai);
|
||||
|
||||
|
||||
/* [ipv4/ares only] Creates a Curl_addrinfo struct from a numerical-only IP
|
||||
address */
|
||||
Curl_addrinfo *Curl_ip2addr(in_addr_t num, const char *hostname, int port);
|
||||
|
||||
/* Clone a Curl_addrinfo struct, works protocol independently */
|
||||
Curl_addrinfo *Curl_addrinfo_copy(const void *orig, int port);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue