Added CURLOPT_CONNECTTIMEOUT
authorDaniel Stenberg <daniel@haxx.se>
Thu, 15 Mar 2001 14:37:41 +0000 (14:37 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 15 Mar 2001 14:37:41 +0000 (14:37 +0000)
include/curl/curl.h

index 69f30a3..175eadd 100644 (file)
@@ -425,6 +425,11 @@ typedef enum {
   /* Set to the Entropy Gathering Daemon socket pathname */
   CINIT(EGDSOCKET, OBJECTPOINT, 77),
 
+  /* Time-out connect operations after this amount of seconds, if connects
+     are OK within this time, then fine... This only aborts the connect
+     phase. [Only works on unix-style/SIGALRM operating systems] */
+  CINIT(CONNECTTIMEOUT, LONG, 78),
+
   CURLOPT_LASTENTRY /* the last unusued */
 } CURLoption;