~ubuntu-branches/ubuntu/gutsy/curl/gutsy

« back to all changes in this revision

Viewing changes to lib/url.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-05-16 15:16:54 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20070516151654-jo48r81zempo1qav
Tags: 7.16.2-3ubuntu1
* Merge with Debian; remaining changes:
  - Drop the stunnel build dependency.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 *                            | (__| |_| |  _ <| |___
8
8
 *                             \___|\___/|_| \_\_____|
9
9
 *
10
 
 * Copyright (C) 1998 - 2005, Daniel Stenberg, <daniel@haxx.se>, et al.
 
10
 * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
11
11
 *
12
12
 * This software is licensed as described in the file COPYING, which
13
13
 * you should have received as part of this distribution. The terms
20
20
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21
21
 * KIND, either express or implied.
22
22
 *
23
 
 * $Id: url.h,v 1.24 2006-04-10 15:00:54 bagder Exp $
 
23
 * $Id: url.h,v 1.32 2007-02-01 11:27:42 yangtse Exp $
24
24
 ***************************************************************************/
25
25
 
26
26
#include <stdarg.h> /* to make sure we have ap_list */
39
39
                             bool *protocol_connect);
40
40
CURLcode Curl_do(struct connectdata **, bool *done);
41
41
CURLcode Curl_do_more(struct connectdata *);
42
 
CURLcode Curl_done(struct connectdata **, CURLcode);
 
42
CURLcode Curl_done(struct connectdata **, CURLcode, bool premature);
43
43
CURLcode Curl_disconnect(struct connectdata *);
44
44
CURLcode Curl_protocol_connect(struct connectdata *conn, bool *done);
45
45
CURLcode Curl_protocol_connecting(struct connectdata *conn, bool *done);
46
46
CURLcode Curl_protocol_doing(struct connectdata *conn, bool *done);
47
47
void Curl_safefree(void *ptr);
48
48
 
 
49
/* create a connection cache */
 
50
struct conncache *Curl_mk_connc(int type, long amount);
 
51
/* free a connection cache */
 
52
void Curl_rm_connc(struct conncache *c);
 
53
/* Change number of entries of a connection cache */
 
54
CURLcode Curl_ch_connc(struct SessionHandle *data,
 
55
                       struct conncache *c,
 
56
                       long newamount);
49
57
 
50
58
int Curl_protocol_getsock(struct connectdata *conn,
51
59
                          curl_socket_t *socks,
54
62
                       curl_socket_t *socks,
55
63
                       int numsocks);
56
64
 
 
65
void Curl_addHandleToPipeline(struct SessionHandle *handle,
 
66
                              struct curl_llist *pipe);
 
67
int Curl_removeHandleFromPipeline(struct SessionHandle *handle,
 
68
                                  struct curl_llist *pipe);
 
69
bool Curl_isHandleAtHead(struct SessionHandle *handle,
 
70
                         struct curl_llist *pipe);
 
71
 
 
72
void Curl_close_connections(struct SessionHandle *data);
 
73
 
57
74
#if 0
58
75
CURLcode Curl_protocol_fdset(struct connectdata *conn,
59
76
                             fd_set *read_fd_set,