00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #include "setup.h"
00025
00026 #include <string.h>
00027
00028 #ifdef NEED_MALLOC_H
00029 #include <malloc.h>
00030 #endif
00031 #ifdef HAVE_SYS_SOCKET_H
00032 #include <sys/socket.h>
00033 #endif
00034 #ifdef HAVE_NETINET_IN_H
00035 #include <netinet/in.h>
00036 #endif
00037 #ifdef HAVE_NETDB_H
00038 #include <netdb.h>
00039 #endif
00040 #ifdef HAVE_ARPA_INET_H
00041 #include <arpa/inet.h>
00042 #endif
00043 #ifdef HAVE_STDLIB_H
00044 #include <stdlib.h>
00045 #endif
00046 #ifdef HAVE_UNISTD_H
00047 #include <unistd.h>
00048 #endif
00049 #ifdef VMS
00050 #include <in.h>
00051 #include <inet.h>
00052 #include <stdlib.h>
00053 #endif
00054
00055 #ifdef HAVE_SETJMP_H
00056 #include <setjmp.h>
00057 #endif
00058
00059 #ifdef HAVE_PROCESS_H
00060 #include <process.h>
00061 #endif
00062
00063 #include "urldata.h"
00064 #include "sendf.h"
00065 #include "hostip.h"
00066 #include "hash.h"
00067 #include "share.h"
00068 #include "strerror.h"
00069 #include "url.h"
00070
00071 #define _MPRINTF_REPLACE
00072 #include <curl/mprintf.h>
00073
00074 #if defined(HAVE_INET_NTOA_R) && !defined(HAVE_INET_NTOA_R_DECL)
00075 #include "inet_ntoa_r.h"
00076 #endif
00077
00078 #include "memory.h"
00079
00080 #include "memdebug.h"
00081
00082
00083
00084
00085 #ifdef CURLRES_SYNCH
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095 CURLcode Curl_wait_for_resolv(struct connectdata *conn,
00096 struct Curl_dns_entry **entry)
00097 {
00098 (void)conn;
00099 *entry=NULL;
00100 return CURLE_COULDNT_RESOLVE_HOST;
00101 }
00102
00103
00104
00105
00106
00107
00108
00109
00110 CURLcode Curl_is_resolved(struct connectdata *conn,
00111 struct Curl_dns_entry **dns)
00112 {
00113 (void)conn;
00114 *dns = NULL;
00115
00116 return CURLE_COULDNT_RESOLVE_HOST;
00117 }
00118
00119
00120
00121
00122
00123
00124 int Curl_resolv_getsock(struct connectdata *conn,
00125 curl_socket_t *sock,
00126 int numsocks)
00127 {
00128 (void)conn;
00129 (void)sock;
00130 (void)numsocks;
00131
00132 return 0;
00133 }
00134
00135 #endif