diff options
author | Anders Bakken <agbakken@gmail.com> | 2018-01-30 16:33:51 -0800 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2018-02-20 04:24:28 -0500 |
commit | 50d1b3379a818df00c6382d68e2e39977cc96cd6 (patch) | |
tree | e792d9a61262b0ac547fd5b301c0150dbc3c7417 /lib/connect.h | |
parent | e77f0e5a5a8161f103d8fbd3ed335345703c6e1f (diff) | |
download | curl-50d1b3379a818df00c6382d68e2e39977cc96cd6.tar.gz |
CURLOPT_RESOLVE: Add support for multiple IP addresses per entry
This enables users to preresolve but still take advantage of happy
eyeballs and trying multiple addresses if some are not connecting.
Ref: https://github.com/curl/curl/pull/2260
Diffstat (limited to 'lib/connect.h')
-rw-r--r-- | lib/connect.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/connect.h b/lib/connect.h index 397448636..4c038874e 100644 --- a/lib/connect.h +++ b/lib/connect.h @@ -78,6 +78,11 @@ void Curl_persistconninfo(struct connectdata *conn); int Curl_closesocket(struct connectdata *conn, curl_socket_t sock); /* + * Get presentation format IP address and port from a sockaddr. + */ +bool Curl_getaddressinfo(struct sockaddr *sa, char *addr, long *port); + +/* * The Curl_sockaddr_ex structure is basically libcurl's external API * curl_sockaddr structure with enough space available to directly hold any * protocol-specific address structures. The variable declared here will be |