Classes | Functions | Variables
hostip.c File Reference
#include "curl_setup.h"
#include "urldata.h"
#include "sendf.h"
#include "hostip.h"
#include "hash.h"
#include "share.h"
#include "strerror.h"
#include "url.h"
#include "inet_ntop.h"
#include "warnless.h"
#include "curl_printf.h"
#include "curl_memory.h"
#include "memdebug.h"
Include dependency graph for hostip.c:

Go to the source code of this file.

Classes

struct  hostcache_prune_data

Functions

static char * create_hostcache_id (const char *name, int port)
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)
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_prune (struct Curl_easy *data)
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 *ai, char *buf, size_t bufsize)
int Curl_resolv (struct connectdata *conn, const char *hostname, int port, struct Curl_dns_entry **entry)
int Curl_resolv_timeout (struct connectdata *conn, const char *hostname, int port, struct Curl_dns_entry **entry, time_t timeoutms)
void Curl_resolv_unlock (struct Curl_easy *data, struct Curl_dns_entry *dns)
static struct Curl_dns_entryfetch_addr (struct connectdata *conn, const char *hostname, int port)
static void freednsentry (void *freethis)
static void hostcache_prune (struct curl_hash *hostcache, long cache_timeout, time_t now)
static int hostcache_timestamp_remove (void *datap, void *hc)

Variables

static int host_cache_initialized
static struct curl_hash hostname_cache

Function Documentation

static char* create_hostcache_id ( const char *  name,
int  port 
) [static]

Definition at line 199 of file hostip.c.

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.

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_prune ( struct Curl_easy data)

Definition at line 257 of file hostip.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 ai,
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 **  entry 
)

Definition at line 444 of file hostip.c.

int Curl_resolv_timeout ( struct connectdata conn,
const char *  hostname,
int  port,
struct Curl_dns_entry **  entry,
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.

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

Definition at line 289 of file hostip.c.

static void freednsentry ( void *  freethis) [static]

Definition at line 736 of file hostip.c.

static void hostcache_prune ( struct curl_hash hostcache,
long  cache_timeout,
time_t  now 
) [static]

Definition at line 241 of file hostip.c.

static int hostcache_timestamp_remove ( void *  datap,
void *  hc 
) [static]

Definition at line 227 of file hostip.c.


Variable Documentation

int host_cache_initialized [static]

Definition at line 111 of file hostip.c.

struct curl_hash hostname_cache [static]

Definition at line 110 of file hostip.c.



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