Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 82 lines (71 sloc) 2.241 kb
648e82f @bagder Major hostip.c cleanup and split into multiple files and easier #ifdef
authored
1 /***************************************************************************
39af394 @bagder removed tabs and trailing whitespace from source
authored
2 * _ _ ____ _
3 * Project ___| | | | _ \| |
4 * / __| | | | |_) | |
5 * | (__| |_| | _ <| |___
648e82f @bagder Major hostip.c cleanup and split into multiple files and easier #ifdef
authored
6 * \___|\___/|_| \_\_____|
7 *
24d84da @bagder asynch resolvers: cleanup
authored
8 * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
648e82f @bagder Major hostip.c cleanup and split into multiple files and easier #ifdef
authored
9 *
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.
39af394 @bagder removed tabs and trailing whitespace from source
authored
13 *
648e82f @bagder Major hostip.c cleanup and split into multiple files and easier #ifdef
authored
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.
17 *
18 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 * KIND, either express or implied.
20 *
21 ***************************************************************************/
22
23 #include "setup.h"
24
25 #ifdef HAVE_SYS_SOCKET_H
26 #include <sys/socket.h>
27 #endif
28 #ifdef HAVE_NETINET_IN_H
29 #include <netinet/in.h>
30 #endif
31 #ifdef HAVE_NETDB_H
32 #include <netdb.h>
33 #endif
34 #ifdef HAVE_ARPA_INET_H
35 #include <arpa/inet.h>
36 #endif
37 #ifdef HAVE_UNISTD_H
38 #include <unistd.h> /* for the close() proto */
39 #endif
3184a91 @yangtse VMS specific preprocessor symbol checking adjustments
yangtse authored
40 #ifdef __VMS
648e82f @bagder Major hostip.c cleanup and split into multiple files and easier #ifdef
authored
41 #include <in.h>
42 #include <inet.h>
43 #endif
44
3cbb1b2 Use the HAVE_MALLOC_H and HAVE_PROCESS_H defines
Gisle Vanem authored
45 #ifdef HAVE_PROCESS_H
648e82f @bagder Major hostip.c cleanup and split into multiple files and easier #ifdef
authored
46 #include <process.h>
47 #endif
48
49 #include "urldata.h"
50 #include "sendf.h"
51 #include "hostip.h"
52 #include "hash.h"
53 #include "share.h"
54 #include "strerror.h"
55 #include "url.h"
56
57 #define _MPRINTF_REPLACE /* use our functions only */
58 #include <curl/mprintf.h>
59
33a3753 @yangtse libcurl's memory.h renamed to curl_memory.h
yangtse authored
60 #include "curl_memory.h"
648e82f @bagder Major hostip.c cleanup and split into multiple files and easier #ifdef
authored
61 /* The last #include file should be: */
62 #include "memdebug.h"
63
64 /***********************************************************************
65 * Only for builds using synchronous name resolves
66 **********************************************************************/
67 #ifdef CURLRES_SYNCH
68
8d0a504 CURLOPT_DNS_SERVERS: set name servers if possible
Jason Glasgow authored
69 /*
70 * Function provided by the resolver backend to set DNS servers to use.
71 */
72 CURLcode Curl_set_dns_servers(struct SessionHandle *data,
73 char *servers)
74 {
75 (void)data;
76 (void)servers;
77 return CURLE_NOT_BUILT_IN;
78
79 }
648e82f @bagder Major hostip.c cleanup and split into multiple files and easier #ifdef
authored
80
81 #endif /* truly sync */
Something went wrong with that request. Please try again.