doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Functions
hostip.c File Reference
#include "setup.h"
#include <string.h>
#include <errno.h>
#include "urldata.h"
#include "sendf.h"
#include "hostip.h"
#include "hash.h"
#include "share.h"
#include "url.h"
#include <curl/mprintf.h>

Go to the source code of this file.

Classes

struct  hostcache_prune_data
 

Macros

#define _REENTRANT
 
#define _MPRINTF_REPLACE   /* use our functions only */
 
#define ARES_SUCCESS   CURLE_OK
 
#define CURL_NAMELOOKUP_SIZE   9000
 
#define MEMALIGN(x)   ((x)+(8-(((unsigned long)(x))&0x7)))
 

Functions

void Curl_global_host_cache_init (void)
 
curl_hashCurl_global_host_cache_get (void)
 
void Curl_global_host_cache_dtor (void)
 
void Curl_hostcache_prune (struct SessionHandle *data)
 
int Curl_resolv (struct connectdata *conn, char *hostname, int port, struct Curl_dns_entry **entry)
 
void Curl_resolv_unlock (struct SessionHandle *data, struct Curl_dns_entry *dns)
 
void Curl_freeaddrinfo (Curl_addrinfo *p)
 
void Curl_freednsinfo (void *freethis)
 
CURLcode Curl_wait_for_resolv (struct connectdata *conn, struct Curl_dns_entry **entry)
 
CURLcode Curl_is_resolved (struct connectdata *conn, struct Curl_dns_entry **dns)
 
CURLcode Curl_multi_ares_fdset (struct connectdata *conn, fd_set *read_fd_set, fd_set *write_fd_set, int *max_fdp)
 

Macro Definition Documentation

#define _MPRINTF_REPLACE   /* use our functions only */

Definition at line 75 of file hostip.c.

#define _REENTRANT

Definition at line 29 of file hostip.c.

#define ARES_SUCCESS   CURLE_OK

Definition at line 88 of file hostip.c.

#define CURL_NAMELOOKUP_SIZE   9000

Definition at line 459 of file hostip.c.

#define MEMALIGN (   x)    ((x)+(8-(((unsigned long)(x))&0x7)))

Function Documentation

void Curl_freeaddrinfo ( Curl_addrinfo p)

Definition at line 431 of file hostip.c.

void Curl_freednsinfo ( void freethis)

Definition at line 443 of file hostip.c.

void Curl_global_host_cache_dtor ( void  )

Definition at line 139 of file hostip.c.

curl_hash* Curl_global_host_cache_get ( void  )

Definition at line 134 of file hostip.c.

void Curl_global_host_cache_init ( void  )

Definition at line 126 of file hostip.c.

void Curl_hostcache_prune ( struct SessionHandle data)

Definition at line 225 of file hostip.c.

CURLcode Curl_is_resolved ( struct connectdata conn,
struct Curl_dns_entry **  dns 
)

Definition at line 684 of file hostip.c.

CURLcode Curl_multi_ares_fdset ( struct connectdata conn,
fd_set *  read_fd_set,
fd_set *  write_fd_set,
int max_fdp 
)

Definition at line 695 of file hostip.c.

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

Definition at line 315 of file hostip.c.

void Curl_resolv_unlock ( struct SessionHandle data,
struct Curl_dns_entry dns 
)

Definition at line 408 of file hostip.c.

CURLcode Curl_wait_for_resolv ( struct connectdata conn,
struct Curl_dns_entry **  entry 
)

Definition at line 676 of file hostip.c.