FACT++  1.0
open_dns.c File Reference
#include <dim.h>
+ Include dependency graph for open_dns.c:

Go to the source code of this file.

Classes

struct  PENDING_CONN
 
struct  dns_ent
 

Macros

#define DIMLIB
 
#define MAX_DNS_NODE   256
 

Typedefs

typedef struct dns_ent DNS_CONN
 

Functions

 _DIM_PROTO (void retry_dns_connection,(int conn_pend_id))
 
 _DIM_PROTO (void init_dns_list,())
 
 _DIM_PROTO (void set_dns_pars,(DNS_CONN *connp, char *node, int port))
 
 _DIM_PROTO (int get_dns_pars,(DNS_CONN *connp, char *node, int *port))
 
int dim_set_dns_node (char *node)
 
int dic_set_dns_node (char *node)
 
int dis_set_dns_node (char *node)
 
int dim_get_dns_node (char *node)
 
int dic_get_dns_node (char *node)
 
int dis_get_dns_node (char *node)
 
int dim_set_dns_port (int port)
 
int dic_set_dns_port (int port)
 
int dis_set_dns_port (int port)
 
int dim_get_dns_port ()
 
int dic_get_dns_port ()
 
int dis_get_dns_port ()
 
void rand_tmout_init ()
 
int rand_tmout (int min, int max)
 
void init_dns_list ()
 
void set_dns_pars (DNS_CONN *connp, char *node, int port)
 
int get_dns_pars (DNS_CONN *connp, char *node, int *port)
 
DNS_CONNfind_dns (char *node_name, int port_number, SRC_TYPES src_type)
 
dim_long dis_add_dns (char *node_name, int port_number)
 
dim_long dic_add_dns (char *node_name, int port_number)
 
DNS_CONNget_dns (DNS_CONN *connp, SRC_TYPES src_type)
 
int close_dns (dim_long dnsid, SRC_TYPES src_type)
 
int open_dns (dim_long dnsid, void(*recv_rout)(), void(*error_rout)(), int tmout_min, int tmout_max, SRC_TYPES src_type)
 
void retry_dns_connection (DNS_CONN *connp)
 
dim_long dns_get_dnsid (int conn_id, SRC_TYPES src_type)
 

Variables

static int Timer_q = 0
 
static DNS_CONNDNS_ids [3] = {0, 0, 0}
 
static DNS_CONNDNS_conn_head = (DNS_CONN *)0