From b7eeb6e67fca686f840eacd6b8394edb58b07482 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 7 Sep 2006 21:49:20 +0000 Subject: Major overhaul introducing http pipelining support and shared connection cache within the multi handle. --- lib/url.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'lib/url.h') diff --git a/lib/url.h b/lib/url.h index 9814a6a3e..ba26f0fcf 100644 --- a/lib/url.h +++ b/lib/url.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2005, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2006, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -46,6 +46,10 @@ CURLcode Curl_protocol_connecting(struct connectdata *conn, bool *done); CURLcode Curl_protocol_doing(struct connectdata *conn, bool *done); void Curl_safefree(void *ptr); +/* create a connection cache */ +struct conncache *Curl_mk_connc(int type); +/* free a connection cache */ +void Curl_rm_connc(struct conncache *c); int Curl_protocol_getsock(struct connectdata *conn, curl_socket_t *socks, @@ -54,6 +58,16 @@ int Curl_doing_getsock(struct connectdata *conn, curl_socket_t *socks, int numsocks); +void Curl_addHandleToPipeline(struct SessionHandle *handle, + struct curl_llist *pipe); +void Curl_removeHandleFromPipeline(struct SessionHandle *handle, + struct curl_llist *pipe); +bool Curl_isHandleAtHead(struct SessionHandle *handle, + struct curl_llist *pipe); +void Curl_signalPipeClose(struct curl_llist *pipe); + +void Curl_close_connections(struct SessionHandle *data); + #if 0 CURLcode Curl_protocol_fdset(struct connectdata *conn, fd_set *read_fd_set, -- cgit v1.2.3