1 /***************************************************************************
3 * Project ___| | | | _ \| |
5 * | (__| |_| | _ <| |___
6 * \___|\___/|_| \_\_____|
8 * Copyright (C) 1998 - 2005, Daniel Stenberg, <daniel@haxx.se>, et al.
10 * This software is licensed as described in the file COPYING, which
11 * you should have received as part of this distribution. The terms
12 * are also available at http://curl.haxx.se/docs/copyright.html.
14 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
15 * copies of the Software, and permit persons to whom the Software is
16 * furnished to do so, under the terms of the COPYING file.
18 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 * KIND, either express or implied.
22 ***************************************************************************/
29 #if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
32 #ifdef HAVE_SYS_TYPES_H
33 #include <sys/types.h>
35 #ifdef HAVE_SYS_SOCKET_H
36 #include <sys/socket.h>
38 #ifdef HAVE_NETINET_IN_H
39 #include <netinet/in.h>
44 #ifdef HAVE_ARPA_INET_H
45 #include <arpa/inet.h>
48 #include <stdlib.h> /* required for free() prototypes */
51 #include <unistd.h> /* for the close() proto */
76 #define _MPRINTF_REPLACE /* use our functions only */
77 #include <curl/mprintf.h>
79 #if defined(HAVE_INET_NTOA_R) && !defined(HAVE_INET_NTOA_R_DECL)
80 #include "inet_ntoa_r.h"
84 /* The last #include file should be: */
87 /***********************************************************************
88 * Only for builds using synchronous name resolves
89 **********************************************************************/
93 * Curl_wait_for_resolv() for synch-builds. Curl_resolv() can never return
94 * wait==TRUE, so this function will never be called. If it still gets called,
95 * we return failure at once.
97 * We provide this function only to allow multi.c to remain unaware if we are
98 * doing asynch resolves or not.
100 CURLcode Curl_wait_for_resolv(struct connectdata *conn,
101 struct Curl_dns_entry **entry)
105 return CURLE_COULDNT_RESOLVE_HOST;
109 * This function will never be called when synch-built. If it still gets
110 * called, we return failure at once.
112 * We provide this function only to allow multi.c to remain unaware if we are
113 * doing asynch resolves or not.
115 CURLcode Curl_is_resolved(struct connectdata *conn,
116 struct Curl_dns_entry **dns)
121 return CURLE_COULDNT_RESOLVE_HOST;
125 * We just return OK, this function is never actually used for synch builds.
126 * It is present here to keep #ifdefs out from multi.c
129 CURLcode Curl_resolv_fdset(struct connectdata *conn,
131 fd_set *write_fd_set,
142 #endif /* truly sync */