1055 sprintf(str0,
"%s/VERSION_NUMBER", task);
1056 sprintf(str1,
"%s/CLIENT_LIST", task);
1057 sprintf(str2,
"%s/SERVICE_LIST", task);
1058 sprintf(str3,
"%s/SET_EXIT_HANDLER", task);
1059 sprintf(str4,
"%s/EXIT", task);
1105 if(!strcmp(task,
"DIS_DNS"))
void add_exit_handler(int *tag, int *bufp, int *size)
void register_services(DIS_DNS_CONN *dnsp, int flag, int dns_flag)
static void exit_handler(int *tag, int *bufp, int *size)
void recv_dns_dis_rout(int conn_id, DNS_DIS_PACKET *packet, int size, int status)
DIS_DNS_CONN * dis_find_dns(long dnsid)
void client_info(long *tag, int **bufp, int *size, int *first_time)
static CLIENT * Client_head
static void dis_insert_request(int conn_id, DIC_PACKET *dic_packet, int size, int status)
#define DIS_DNS_TMOUT_MAX
DIS_DNS_CONN * Default_DNS
void do_update_service_list(DIS_DNS_CONN *dnsp)
int updating_service_list
#define DIS_DNS_TMOUT_MIN
static int Dis_first_time
static int Version_number
int open_dns(dim_long dnsid, void(*recv_rout)(), void(*error_rout)(), int tmout_min, int tmout_max, SRC_TYPES src_type)
static unsigned do_dis_add_cmnd_dns(char *name, char *type, void(*user_routine)(), long tag, long dnsid)
void dtq_start_timer(int time, void(*user_routine)(), dim_long tag)
void service_info(long *tag, int **bufp, int *size, int *first_time)
int dna_open_server(char *task, void(*read_ast)(), int *protocol, int *port, void(*error_ast)())
static void error_handler(int conn_id, int severity, int errcode, char *reason)
int id_get(void *ptr, SRC_TYPES type)
unsigned int dis_service_id
unsigned int dis_client_id
static unsigned do_dis_add_service_dns(char *name, char *type, void *address, int size, void(*user_routine)(), long tag, long dnsid)
DIS_DNS_PACKET dis_dns_packet
sprintf(name1,"NewService%d", i)
static DIS_DNS_CONN * create_dns(long dnsid)