Classes | Functions
ares_gethostbyname.c File Reference
#include "ares_setup.h"
#include "ares_nameser.h"
#include "ares.h"
#include "ares_inet_net_pton.h"
#include "bitncmp.h"
#include "ares_platform.h"
#include "ares_nowarn.h"
#include "ares_private.h"
Include dependency graph for ares_gethostbyname.c:

Go to the source code of this file.

Classes

struct  host_query
 

Functions

void ares_gethostbyname (ares_channel channel, const char *name, int family, ares_host_callback callback, void *arg)
 
int ares_gethostbyname_file (ares_channel channel, const char *name, int family, struct hostent **host)
 
static void end_hquery (struct host_query *hquery, int status, struct hostent *host)
 
static int fake_hostent (const char *name, int family, ares_host_callback callback, void *arg)
 
static int file_lookup (const char *name, int family, struct hostent **host)
 
static int get6_address_index (const struct ares_in6_addr *addr, const struct apattern *sortlist, int nsort)
 
static int get_address_index (const struct in_addr *addr, const struct apattern *sortlist, int nsort)
 
static void host_callback (void *arg, int status, int timeouts, unsigned char *abuf, int alen)
 
static void next_lookup (struct host_query *hquery, int status_code)
 
static void sort6_addresses (struct hostent *host, const struct apattern *sortlist, int nsort)
 
static void sort_addresses (struct hostent *host, const struct apattern *sortlist, int nsort)
 

Function Documentation

◆ ares_gethostbyname()

void ares_gethostbyname ( ares_channel  channel,
const char *  name,
int  family,
ares_host_callback  callback,
void *  arg 
)

Definition at line 75 of file ares_gethostbyname.c.

◆ ares_gethostbyname_file()

int ares_gethostbyname_file ( ares_channel  channel,
const char *  name,
int  family,
struct hostent **  host 
)

Definition at line 321 of file ares_gethostbyname.c.

◆ end_hquery()

static void end_hquery ( struct host_query hquery,
int  status,
struct hostent *  host 
)
static

Definition at line 232 of file ares_gethostbyname.c.

◆ fake_hostent()

static int fake_hostent ( const char *  name,
int  family,
ares_host_callback  callback,
void *  arg 
)
static

Definition at line 245 of file ares_gethostbyname.c.

◆ file_lookup()

static int file_lookup ( const char *  name,
int  family,
struct hostent **  host 
)
static

Definition at line 347 of file ares_gethostbyname.c.

◆ get6_address_index()

static int get6_address_index ( const struct ares_in6_addr addr,
const struct apattern sortlist,
int  nsort 
)
static

Definition at line 520 of file ares_gethostbyname.c.

◆ get_address_index()

static int get_address_index ( const struct in_addr *  addr,
const struct apattern sortlist,
int  nsort 
)
static

Definition at line 464 of file ares_gethostbyname.c.

◆ host_callback()

static void host_callback ( void *  arg,
int  status,
int  timeouts,
unsigned char *  abuf,
int  alen 
)
static

Definition at line 173 of file ares_gethostbyname.c.

◆ next_lookup()

static void next_lookup ( struct host_query hquery,
int  status_code 
)
static

Definition at line 127 of file ares_gethostbyname.c.

◆ sort6_addresses()

static void sort6_addresses ( struct hostent *  host,
const struct apattern sortlist,
int  nsort 
)
static

Definition at line 490 of file ares_gethostbyname.c.

◆ sort_addresses()

static void sort_addresses ( struct hostent *  host,
const struct apattern sortlist,
int  nsort 
)
static

Definition at line 434 of file ares_gethostbyname.c.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:03