hostsyn.c
Go to the documentation of this file.
00001 /***************************************************************************
00002  *                                  _   _ ____  _
00003  *  Project                     ___| | | |  _ \| |
00004  *                             / __| | | | |_) | |
00005  *                            | (__| |_| |  _ <| |___
00006  *                             \___|\___/|_| \_\_____|
00007  *
00008  * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
00009  *
00010  * This software is licensed as described in the file COPYING, which
00011  * you should have received as part of this distribution. The terms
00012  * are also available at https://curl.haxx.se/docs/copyright.html.
00013  *
00014  * You may opt to use, copy, modify, merge, publish, distribute and/or sell
00015  * copies of the Software, and permit persons to whom the Software is
00016  * furnished to do so, under the terms of the COPYING file.
00017  *
00018  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
00019  * KIND, either express or implied.
00020  *
00021  ***************************************************************************/
00022 
00023 #include "curl_setup.h"
00024 
00025 #ifdef HAVE_NETINET_IN_H
00026 #include <netinet/in.h>
00027 #endif
00028 #ifdef HAVE_NETDB_H
00029 #include <netdb.h>
00030 #endif
00031 #ifdef HAVE_ARPA_INET_H
00032 #include <arpa/inet.h>
00033 #endif
00034 #ifdef __VMS
00035 #include <in.h>
00036 #include <inet.h>
00037 #endif
00038 
00039 #ifdef HAVE_PROCESS_H
00040 #include <process.h>
00041 #endif
00042 
00043 #include "urldata.h"
00044 #include "sendf.h"
00045 #include "hostip.h"
00046 #include "hash.h"
00047 #include "share.h"
00048 #include "strerror.h"
00049 #include "url.h"
00050 #include "curl_memory.h"
00051 /* The last #include file should be: */
00052 #include "memdebug.h"
00053 
00054 /***********************************************************************
00055  * Only for builds using synchronous name resolves
00056  **********************************************************************/
00057 #ifdef CURLRES_SYNCH
00058 
00059 /*
00060  * Function provided by the resolver backend to set DNS servers to use.
00061  */
00062 CURLcode Curl_set_dns_servers(struct Curl_easy *data,
00063                               char *servers)
00064 {
00065   (void)data;
00066   (void)servers;
00067   return CURLE_NOT_BUILT_IN;
00068 
00069 }
00070 
00071 /*
00072  * Function provided by the resolver backend to set
00073  * outgoing interface to use for DNS requests
00074  */
00075 CURLcode Curl_set_dns_interface(struct Curl_easy *data,
00076                                 const char *interf)
00077 {
00078   (void)data;
00079   (void)interf;
00080   return CURLE_NOT_BUILT_IN;
00081 }
00082 
00083 /*
00084  * Function provided by the resolver backend to set
00085  * local IPv4 address to use as source address for DNS requests
00086  */
00087 CURLcode Curl_set_dns_local_ip4(struct Curl_easy *data,
00088                                 const char *local_ip4)
00089 {
00090   (void)data;
00091   (void)local_ip4;
00092   return CURLE_NOT_BUILT_IN;
00093 }
00094 
00095 /*
00096  * Function provided by the resolver backend to set
00097  * local IPv6 address to use as source address for DNS requests
00098  */
00099 CURLcode Curl_set_dns_local_ip6(struct Curl_easy *data,
00100                                 const char *local_ip6)
00101 {
00102   (void)data;
00103   (void)local_ip6;
00104   return CURLE_NOT_BUILT_IN;
00105 }
00106 
00107 #endif /* truly sync */


rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:04