summaryrefslogtreecommitdiff
path: root/lib/conncache.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-05-12 23:06:11 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-05-12 23:21:33 +0200
commitfd137786e527dd7f58b11b0e46ed366a5596152a (patch)
treea1e7d813d06e53544fc5c9af64aa19be0ba969f5 /lib/conncache.h
parentb419e7ae0c9869ac3eb06d529efeb2c6dc1b4bc1 (diff)
downloadcurl-fd137786e527dd7f58b11b0e46ed366a5596152a.tar.gz
bundles: merged into conncache.c
All the existing Curl_bundle* functions were only ever used from within the conncache.c file, so I moved them over and made them static (and removed the Curl_ prefix).
Diffstat (limited to 'lib/conncache.h')
-rw-r--r--lib/conncache.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/conncache.h b/lib/conncache.h
index dc4867d0d..cff750983 100644
--- a/lib/conncache.h
+++ b/lib/conncache.h
@@ -30,6 +30,13 @@ struct conncache {
struct timeval last_cleanup;
};
+struct connectbundle {
+ bool server_supports_pipelining; /* TRUE if server supports pipelining,
+ set after first response */
+ size_t num_connections; /* Number of connections in the bundle */
+ struct curl_llist *conn_list; /* The connectdata members of the bundle */
+};
+
int Curl_conncache_init(struct conncache *, int size);
void Curl_conncache_destroy(struct conncache *connc);