7
7
* | (__| |_| | _ <| |___
8
8
* \___|\___/|_| \_\_____|
10
* Copyright (C) 1998 - 2005, Daniel Stenberg, <daniel@haxx.se>, et al.
10
* Copyright (C) 1998 - 2006, Daniel Stenberg, <daniel@haxx.se>, et al.
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.
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
***************************************************************************/
159
160
CURLcode Curl_wait_for_resolv(struct connectdata *conn,
160
161
struct Curl_dns_entry **dnsentry);
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,
167
fd_set *write_fd_set,
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,
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);
172
177
/* for debugging purposes only: */
173
178
void Curl_scan_cache_used(void *user, void *ptr);