Definition at line 641 of file dis.c.
References ALL, exit_ent::conn_id, DIM_FATAL, DIM_WARNING, DIMDNSDUPLC, DIMDNSEXIT, DIMDNSREFUS, DIMDNSTMOUT, DIMDNSUNDEF, DIS_DNS_TMOUT_MAX, DIS_DNS_TMOUT_MIN, Dis_timer_q, dna_close(), dis_dns_ent::dns_dis_conn_id, DNS_DIS_EXIT, DNS_DIS_HEADER, DNS_DIS_KILL, DNS_DIS_REGISTER, DNS_DIS_SOFT_EXIT, DNS_DIS_STOP, dis_dns_ent::dns_timr_ent, dis_dns_ent::dnsid, do_dis_stop_serving_dns(), do_register_services(), dtq_add_entry(), dtq_rem_entry(), error_handler(), find_dns_by_conn_id(), open_dns(), rand_tmout(), register_services(), dis_dns_ent::serving, Serving, DNS_DIS_PACKET::size, sprintf(), SRC_DIS, STA_CONN, STA_DISC, str, dis_dns_ent::task_name, type, DNS_DIS_PACKET::type, WATCHDOG_TMOUT_MAX, and WATCHDOG_TMOUT_MIN.
Referenced by dis_start_serving_dns(), and release_conn().
698 type = vtohl(packet->
type);
699 exit_code = (type >> 16) & 0xFFFF;
705 "%s: Watchdog Timeout, DNS requests registration",
712 "%s: Some Services already known to DNS",
732 "%s: DNS refuses connection",dnsp->
task_name);
751 "%s: DNS requests Exit",dnsp->
task_name);
759 "%s: DNS requests Exit(%d)",dnsp->
task_name, exit_code);
static void error_handler(int conn_id, int severity, int errcode, char *reason, int exit)
DIS_DNS_CONN * find_dns_by_conn_id(int conn_id)
void do_dis_stop_serving_dns(DIS_DNS_CONN *dnsp)
int rand_tmout(int min, int max)
int dna_close(int conn_id)
#define DIS_DNS_TMOUT_MAX
void register_services(DIS_DNS_CONN *dnsp, int flag, int dns_flag)
#define DIS_DNS_TMOUT_MIN
int open_dns(dim_long dnsid, void(*recv_rout)(), void(*error_rout)(), int tmout_min, int tmout_max, SRC_TYPES src_type)
#define WATCHDOG_TMOUT_MIN
int dtq_rem_entry(int queue_id, TIMR_ENT *entry)
#define WATCHDOG_TMOUT_MAX
void recv_dns_dis_rout(int conn_id, DNS_DIS_PACKET *packet, int size, int status)
TIMR_ENT * dtq_add_entry(int queue_id, int time, void(*user_routine)(), dim_long tag)
sprintf(name1,"NewService%d", i)
void do_register_services(DIS_DNS_CONN *dnsp)