summaryrefslogtreecommitdiff
path: root/lib/connect.h
diff options
context:
space:
mode:
authorAnders Bakken <agbakken@gmail.com>2018-01-30 16:33:51 -0800
committerJay Satiro <raysatiro@yahoo.com>2018-02-20 04:24:28 -0500
commit50d1b3379a818df00c6382d68e2e39977cc96cd6 (patch)
treee792d9a61262b0ac547fd5b301c0150dbc3c7417 /lib/connect.h
parente77f0e5a5a8161f103d8fbd3ed335345703c6e1f (diff)
downloadcurl-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.h5
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