aboutsummaryrefslogtreecommitdiff
path: root/lib/connect.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/connect.h')
-rw-r--r--lib/connect.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/connect.h b/lib/connect.h
index 78c0191ba..8e55cc941 100644
--- a/lib/connect.h
+++ b/lib/connect.h
@@ -47,4 +47,13 @@ long Curl_timeleft(struct connectdata *conn,
#define DEFAULT_CONNECT_TIMEOUT 300000 /* milliseconds == five minutes */
+/*
+ * Used to extract socket and connectdata struct for the most recent
+ * transfer on the given SessionHandle.
+ *
+ * The socket 'long' will be -1 in case of failure!
+ */
+CURLcode Curl_getconnectinfo(struct SessionHandle *data,
+ long *param_longp,
+ struct connectdata **connp);
#endif