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

« back to all changes in this revision

Viewing changes to lib/hostip.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2006-06-29 15:04:24 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20060629150424-be178abcwks1n519
Tags: upstream-7.15.4
ImportĀ upstreamĀ versionĀ 7.15.4

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 - 2006, 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: hostip.h,v 1.43 2005/04/04 21:23:04 bagder Exp $
 
23
 * $Id: hostip.h,v 1.48 2006-04-11 07:22:55 bagder Exp $
24
24
 ***************************************************************************/
25
25
 
26
26
#include "setup.h"
82
82
#define CURL_ASYNC_SUCCESS ARES_SUCCESS
83
83
#else
84
84
#define CURL_ASYNC_SUCCESS CURLE_OK
 
85
#define ares_cancel(x)
85
86
#endif
86
87
 
87
88
/*
159
160
CURLcode Curl_wait_for_resolv(struct connectdata *conn,
160
161
                              struct Curl_dns_entry **dnsentry);
161
162
 
162
 
/* Curl_resolv_fdset() is a generic function that exists in multiple versions
163
 
   depending on what name resolve technology we've built to use. The function
164
 
   is called from the curl_multi_fdset() function */
165
 
CURLcode Curl_resolv_fdset(struct connectdata *conn,
166
 
                           fd_set *read_fd_set,
167
 
                           fd_set *write_fd_set,
168
 
                           int *max_fdp);
 
163
/* Curl_resolv_getsock() is a generic function that exists in multiple
 
164
   versions depending on what name resolve technology we've built to use. The
 
165
   function is called from the multi_getsock() function.  'sock' is a pointer
 
166
   to an array to hold the file descriptors, with 'numsock' being the size of
 
167
   that array (in number of entries). This function is supposed to return
 
168
   bitmask indicating what file descriptors (referring to array indexes in the
 
169
   'sock' array) to wait for, read/write. */
 
170
int Curl_resolv_getsock(struct connectdata *conn, curl_socket_t *sock,
 
171
                        int numsocks);
 
172
 
169
173
/* unlock a previously resolved dns entry */
170
 
void Curl_resolv_unlock(struct SessionHandle *data, struct Curl_dns_entry *dns);
 
174
void Curl_resolv_unlock(struct SessionHandle *data,
 
175
                        struct Curl_dns_entry *dns);
171
176
 
172
177
/* for debugging purposes only: */
173
178
void Curl_scan_cache_used(void *user, void *ptr);