Classes | Defines | Functions
hostip.h File Reference
#include "curl_setup.h"
#include "hash.h"
#include "curl_addrinfo.h"
#include "asyn.h"
Include dependency graph for hostip.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Curl_dns_entry

Defines

#define Curl_async_resolved(x, y)   CURLE_OK
#define CURL_ASYNC_SUCCESS   CURLE_OK
#define CURL_HOSTENT_SIZE   9000
#define CURL_INADDR_NONE   (in_addr_t) ~0
#define Curl_ipv6works()   FALSE
#define CURL_TIMEOUT_RESOLVE
#define CURLRESOLV_ERROR   -1
#define CURLRESOLV_PENDING   1
#define CURLRESOLV_RESOLVED   0
#define CURLRESOLV_TIMEDOUT   -2

Functions

CURLcode Curl_addrinfo_callback (struct connectdata *conn, int status, Curl_addrinfo *ai)
CURLcode Curl_async_resolved (struct connectdata *conn, bool *protocol_connect)
struct Curl_dns_entryCurl_cache_addr (struct Curl_easy *data, Curl_addrinfo *addr, const char *hostname, int port)
struct Curl_dns_entryCurl_fetch_addr (struct connectdata *conn, const char *hostname, int port)
Curl_addrinfoCurl_getaddrinfo (struct connectdata *conn, const char *hostname, int port, int *waitp)
void Curl_global_host_cache_dtor (void)
struct curl_hashCurl_global_host_cache_init (void)
void Curl_hostcache_clean (struct Curl_easy *data, struct curl_hash *hash)
void Curl_hostcache_destroy (struct Curl_easy *data)
void Curl_hostcache_prune (struct Curl_easy *data)
Curl_addrinfoCurl_ipv4_resolve_r (const char *hostname, int port)
bool Curl_ipvalid (struct connectdata *conn)
CURLcode Curl_loadhostpairs (struct Curl_easy *data)
int Curl_mk_dnscache (struct curl_hash *hash)
int Curl_num_addresses (const Curl_addrinfo *addr)
const char * Curl_printable_address (const Curl_addrinfo *ip, char *buf, size_t bufsize)
int Curl_resolv (struct connectdata *conn, const char *hostname, int port, struct Curl_dns_entry **dnsentry)
int Curl_resolv_timeout (struct connectdata *conn, const char *hostname, int port, struct Curl_dns_entry **dnsentry, time_t timeoutms)
void Curl_resolv_unlock (struct Curl_easy *data, struct Curl_dns_entry *dns)
void Curl_scan_cache_used (void *user, void *ptr)
CURLcode Curl_set_dns_interface (struct Curl_easy *data, const char *interf)
CURLcode Curl_set_dns_local_ip4 (struct Curl_easy *data, const char *local_ip4)
CURLcode Curl_set_dns_local_ip6 (struct Curl_easy *data, const char *local_ip6)
CURLcode Curl_set_dns_servers (struct Curl_easy *data, char *servers)

Define Documentation

#define Curl_async_resolved (   x,
  y 
)    CURLE_OK

Definition at line 151 of file hostip.h.

Definition at line 48 of file hostip.h.

#define CURL_HOSTENT_SIZE   9000

Definition at line 44 of file hostip.h.

#define CURL_INADDR_NONE   (in_addr_t) ~0

Definition at line 194 of file hostip.h.

#define Curl_ipv6works ( )    FALSE

Definition at line 97 of file hostip.h.

Value:
300 /* when using asynch methods, we allow this
                                    many seconds for a name resolve */

Definition at line 46 of file hostip.h.

#define CURLRESOLV_ERROR   -1

Definition at line 82 of file hostip.h.

#define CURLRESOLV_PENDING   1

Definition at line 84 of file hostip.h.

#define CURLRESOLV_RESOLVED   0

Definition at line 83 of file hostip.h.

#define CURLRESOLV_TIMEDOUT   -2

Definition at line 81 of file hostip.h.


Function Documentation

CURLcode Curl_addrinfo_callback ( struct connectdata conn,
int  status,
Curl_addrinfo ai 
)
CURLcode Curl_async_resolved ( struct connectdata conn,
bool protocol_connect 
)
struct Curl_dns_entry* Curl_cache_addr ( struct Curl_easy data,
Curl_addrinfo addr,
const char *  hostname,
int  port 
) [read]

Definition at line 375 of file hostip.c.

struct Curl_dns_entry* Curl_fetch_addr ( struct connectdata conn,
const char *  hostname,
int  port 
) [read]

Definition at line 344 of file hostip.c.

Curl_addrinfo* Curl_getaddrinfo ( struct connectdata conn,
const char *  hostname,
int  port,
int *  waitp 
)

Definition at line 91 of file hostip4.c.

void Curl_global_host_cache_dtor ( void  )

Definition at line 137 of file hostip.c.

struct curl_hash* Curl_global_host_cache_init ( void  ) [read]

Definition at line 122 of file hostip.c.

void Curl_hostcache_clean ( struct Curl_easy data,
struct curl_hash hash 
)

Definition at line 764 of file hostip.c.

void Curl_hostcache_destroy ( struct Curl_easy data)
void Curl_hostcache_prune ( struct Curl_easy data)

Definition at line 257 of file hostip.c.

Curl_addrinfo* Curl_ipv4_resolve_r ( const char *  hostname,
int  port 
)

Definition at line 122 of file hostip4.c.

bool Curl_ipvalid ( struct connectdata conn)

Definition at line 64 of file hostip4.c.

Definition at line 777 of file hostip.c.

int Curl_mk_dnscache ( struct curl_hash hash)

Definition at line 751 of file hostip.c.

int Curl_num_addresses ( const Curl_addrinfo addr)

Definition at line 148 of file hostip.c.

const char* Curl_printable_address ( const Curl_addrinfo ip,
char *  buf,
size_t  bufsize 
)

Definition at line 166 of file hostip.c.

int Curl_resolv ( struct connectdata conn,
const char *  hostname,
int  port,
struct Curl_dns_entry **  dnsentry 
)

Definition at line 444 of file hostip.c.

int Curl_resolv_timeout ( struct connectdata conn,
const char *  hostname,
int  port,
struct Curl_dns_entry **  dnsentry,
time_t  timeoutms 
)

Definition at line 567 of file hostip.c.

void Curl_resolv_unlock ( struct Curl_easy data,
struct Curl_dns_entry dns 
)

Definition at line 722 of file hostip.c.

void Curl_scan_cache_used ( void *  user,
void *  ptr 
)
CURLcode Curl_set_dns_interface ( struct Curl_easy data,
const char *  interf 
)

Definition at line 75 of file hostsyn.c.

CURLcode Curl_set_dns_local_ip4 ( struct Curl_easy data,
const char *  local_ip4 
)

Definition at line 87 of file hostsyn.c.

CURLcode Curl_set_dns_local_ip6 ( struct Curl_easy data,
const char *  local_ip6 
)

Definition at line 99 of file hostsyn.c.

CURLcode Curl_set_dns_servers ( struct Curl_easy data,
char *  servers 
)

Definition at line 62 of file hostsyn.c.



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