reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
ares_private.h File Reference
#include <sys/types.h>
#include <netinet/in.h>
#include <string.h>
#include <stdio.h>

Go to the source code of this file.

Classes

struct  send_request
 
struct  server_state
 
struct  query
 
struct  apattern
 
struct  ares_channeldata
 

Macros

#define DEFAULT_TIMEOUT   5
 
#define DEFAULT_TRIES   4
 
#define INADDR_NONE   0xffffffff
 
#define MAX_ADAPTER_ADDRESS_LENGTH   8
 
#define PATH_RESOLV_CONF   "/etc/resolv.conf"
 
#define PATH_HOSTS   "/etc/hosts"
 

Functions

void ares__send_query (ares_channel channel, struct query *query, time_t now)
 
void ares__close_poll (ares_channel channel, int server_idx)
 
void ares__close_sockets (struct server_state *server)
 
int ares__get_hostent (FILE *fp, struct hostent **host)
 
int ares__read_line (FILE *fp, char **buf, int *bufsize)
 
void ares__kill_socket (int s)
 

Macro Definition Documentation

◆ DEFAULT_TIMEOUT

#define DEFAULT_TIMEOUT   5

Definition at line 32 of file ares_private.h.

◆ DEFAULT_TRIES

#define DEFAULT_TRIES   4

Definition at line 33 of file ares_private.h.

◆ INADDR_NONE

#define INADDR_NONE   0xffffffff

Definition at line 35 of file ares_private.h.

◆ MAX_ADAPTER_ADDRESS_LENGTH

#define MAX_ADAPTER_ADDRESS_LENGTH   8

Definition at line 38 of file ares_private.h.

◆ PATH_HOSTS

#define PATH_HOSTS   "/etc/hosts"

Definition at line 45 of file ares_private.h.

◆ PATH_RESOLV_CONF

#define PATH_RESOLV_CONF   "/etc/resolv.conf"

Definition at line 41 of file ares_private.h.

Function Documentation

◆ ares__close_poll()

void ares__close_poll ( ares_channel  channel,
int  server_idx 
)

Definition at line 24 of file ares__close_sockets.c.

◆ ares__close_sockets()

void ares__close_sockets ( struct server_state *  server)

Definition at line 36 of file ares__close_sockets.c.

◆ ares__get_hostent()

int ares__get_hostent ( FILE *  fp,
struct hostent **  host 
)

Definition at line 34 of file ares__get_hostent.c.

◆ ares__kill_socket()

void ares__kill_socket ( int  s)

Definition at line 981 of file ares_process.c.

◆ ares__read_line()

int ares__read_line ( FILE *  fp,
char **  buf,
int *  bufsize 
)

Definition at line 31 of file ares__read_line.c.

◆ ares__send_query()

void ares__send_query ( ares_channel  channel,
struct query *  query,
time_t  now 
)

Definition at line 614 of file ares_process.c.