From a1d6ad26100bc493c7b04f1301b1634b7f5aa8b4 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 20 Feb 2001 17:35:51 +0000 Subject: multiple connection support initial commit --- include/curl/curl.h | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/curl/curl.h b/include/curl/curl.h index f47eae2ce..3c94af55f 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -158,6 +158,9 @@ typedef enum { CURLE_BAD_PASSWORD_ENTERED, /* when the my_getpass() returns fail */ CURLE_TOO_MANY_REDIRECTS , /* catch endless re-direct loops */ + CURLE_UNKNOWN_TELNET_OPTION , /* User specified an unknown option */ + CURLE_TELNET_OPTION_SYNTAX , /* Malformed telnet option */ + CURL_LAST } CURLcode; @@ -406,6 +409,9 @@ typedef enum { document! Pass a NULL to shut it off. */ CINIT(FILETIME, OBJECTPOINT, 69), + /* This points to a linked list of telnet options */ + CINIT(TELNETOPTIONS, OBJECTPOINT, 70), + CURLOPT_LASTENTRY /* the last unusued */ } CURLoption; @@ -452,8 +458,8 @@ char *curl_getenv(char *variable); char *curl_version(void); /* This is the version number */ -#define LIBCURL_VERSION "7.6.1" -#define LIBCURL_VERSION_NUM 0x070601 +#define LIBCURL_VERSION "7.7-alpha1" +#define LIBCURL_VERSION_NUM 0x070000 /* linked-list structure for the CURLOPT_QUOTE option (and other) */ struct curl_slist { @@ -520,6 +526,20 @@ typedef enum { */ CURLcode curl_getinfo(CURL *curl, CURLINFO info, ...); + +typedef enum { + CURLCLOSEPOLICY_NONE, /* first, never use this */ + + CURLCLOSEPOLICY_OLDEST, + CURLCLOSEPOLICY_LEAST_RECENTLY_USED, + CURLCLOSEPOLICY_LEAST_TRAFFIC, + CURLCLOSEPOLICY_SLOWEST, + CURLCLOSEPOLICY_CALLBACK, + + CURLCLOSEPOLICY_LAST /* last, never use this */ +} curl_closepolicy; + + #ifdef __cplusplus } #endif -- cgit v1.2.3