1141 printf(
"Opening Server Connection %s\n",task_name_aux);
1155 sprintf(str0,
"%s/VERSION_NUMBER", task);
1156 sprintf(str1,
"%s/CLIENT_LIST", task);
1157 sprintf(str2,
"%s/SERVICE_LIST", task);
1158 sprintf(str3,
"%s/SET_EXIT_HANDLER", task);
1159 sprintf(str4,
"%s/EXIT", task);
1175 printf(
"start serving %s\n",task);
1210 if(!strcmp(task,
"DIS_DNS"))
DIS_DNS_CONN * Default_DNS
static void error_handler(int conn_id, int severity, int errcode, char *reason, int exit)
void service_info(dim_long *tag, int **bufp, int *size, int *first_time)
#define DIS_DNS_TMOUT_MAX
void add_exit_handler(int *tag, int *bufp, int *size)
static void dis_insert_request(int conn_id, DIC_PACKET *dic_packet, int size, int status)
void register_services(DIS_DNS_CONN *dnsp, int flag, int dns_flag)
int updating_service_list
#define DIS_DNS_TMOUT_MIN
void do_update_service_list(DIS_DNS_CONN *dnsp)
static CLIENT * Client_head
int open_dns(dim_long dnsid, void(*recv_rout)(), void(*error_rout)(), int tmout_min, int tmout_max, SRC_TYPES src_type)
void dtq_start_timer(int time, void(*user_routine)(), dim_long tag)
static int Dis_first_time
static DIS_DNS_CONN * create_dns(dim_long dnsid)
static unsigned do_dis_add_cmnd_dns(char *name, char *type, void(*user_routine)(), dim_long tag, dim_long dnsid)
void client_info(dim_long *tag, int **bufp, int *size, int *first_time)
DIS_DNS_CONN * dis_find_dns(dim_long dnsid)
void recv_dns_dis_rout(int conn_id, DNS_DIS_PACKET *packet, int size, int status)
static int Version_number
int dna_open_server(char *task, void(*read_ast)(), int *protocol, int *port, void(*error_ast)())
static void exit_handler(int *tag, int *bufp, int *size)
static unsigned do_dis_add_service_dns(char *name, char *type, void *address, int size, void(*user_routine)(), dim_long tag, dim_long dnsid)
int id_get(void *ptr, SRC_TYPES type)
void dim_print_date_time()
unsigned int dis_service_id
unsigned int dis_client_id
DIS_DNS_PACKET dis_dns_packet
sprintf(name1,"NewService%d", i)