1 /***************************************************************************
3 * Project ___| | | | _ \| |
5 * | (__| |_| | _ <| |___
6 * \___|\___/|_| \_\_____|
8 * Copyright (C) 1998 - 2004, 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 ***************************************************************************/
31 #if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
34 #ifdef HAVE_SYS_TYPES_H
35 #include <sys/types.h>
37 #ifdef HAVE_SYS_SOCKET_H
38 #include <sys/socket.h>
40 #ifdef HAVE_NETINET_IN_H
41 #include <netinet/in.h>
46 #ifdef HAVE_ARPA_INET_H
47 #include <arpa/inet.h>
50 #include <stdlib.h> /* required for free() prototypes */
53 #include <unistd.h> /* for the close() proto */
70 #if (defined(NETWARE) && defined(__NOVELL_LIBC__))
72 #define in_addr_t unsigned long
83 #define _MPRINTF_REPLACE /* use our functions only */
84 #include <curl/mprintf.h>
86 #if defined(HAVE_INET_NTOA_R) && !defined(HAVE_INET_NTOA_R_DECL)
87 #include "inet_ntoa_r.h"
91 /* The last #include file should be: */
94 /***********************************************************************
95 * Only for builds using synchronous name resolves
96 **********************************************************************/
100 * Curl_wait_for_resolv() for synch-builds. Curl_resolv() can never return
101 * wait==TRUE, so this function will never be called. If it still gets called,
102 * we return failure at once.
104 * We provide this function only to allow multi.c to remain unaware if we are
105 * doing asynch resolves or not.
107 CURLcode Curl_wait_for_resolv(struct connectdata *conn,
108 struct Curl_dns_entry **entry)
112 return CURLE_COULDNT_RESOLVE_HOST;
116 * This function will never be called when synch-built. If it still gets
117 * called, we return failure at once.
119 * We provide this function only to allow multi.c to remain unaware if we are
120 * doing asynch resolves or not.
122 CURLcode Curl_is_resolved(struct connectdata *conn,
123 struct Curl_dns_entry **dns)
128 return CURLE_COULDNT_RESOLVE_HOST;
132 * We just return OK, this function is never actually used for synch builds.
133 * It is present here to keep #ifdefs out from multi.c
136 CURLcode Curl_fdset(struct connectdata *conn,
138 fd_set *write_fd_set,
149 #endif /* truly sync */