mirror of
https://github.com/curl/curl.git
synced 2026-07-29 01:13:06 +03:00
more transparant support for IPv6 name resolving
This commit is contained in:
parent
888d39e083
commit
48dc74aecc
5 changed files with 51 additions and 53 deletions
18
lib/hostip.h
18
lib/hostip.h
|
|
@ -24,12 +24,18 @@
|
|||
*****************************************************************************/
|
||||
|
||||
struct addrinfo;
|
||||
struct addrinfo *Curl_getaddrinfo(struct SessionHandle *data,
|
||||
char *hostname,
|
||||
int port);
|
||||
struct hostent;
|
||||
struct SessionHandle;
|
||||
|
||||
struct hostent *Curl_gethost(struct SessionHandle *data,
|
||||
char *hostname,
|
||||
char **bufp);
|
||||
#ifdef ENABLE_IPV6
|
||||
typedef struct addrinfo Curl_addrinfo;
|
||||
#else
|
||||
typedef struct hostent Curl_addrinfo;
|
||||
#endif
|
||||
|
||||
Curl_addrinfo *Curl_getaddrinfo(struct SessionHandle *data,
|
||||
char *hostname,
|
||||
int port,
|
||||
char **bufp);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue