Definition at line 622 of file dis_old.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_stop_serving(), 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_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, DNS_DIS_PACKET::size, sprintf(), SRC_DIS, STA_CONN, STA_DISC, str, dis_dns_ent::task_name, DNS_DIS_PACKET::type, WATCHDOG_TMOUT_MAX, and WATCHDOG_TMOUT_MIN.
Referenced by dis_start_serving_dns(), and release_conn().
627 extern int open_dns(
long,
void (*)(),
void (*)(),
int,
int,
int);
676 switch( vtohl(packet->
type) )
680 "%s: Watchdog Timeout, DNS requests registration",
687 "%s: Some Services already known to DNS",
704 "%s: DNS refuses connection",dnsp->
task_name);
720 "%s: DNS requests Exit",dnsp->
task_name);
void register_services(DIS_DNS_CONN *dnsp, int flag, int dns_flag)
void recv_dns_dis_rout(int conn_id, DNS_DIS_PACKET *packet, int size, int status)
int rand_tmout(int min, int max)
int dna_close(int conn_id)
#define DIS_DNS_TMOUT_MAX
#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)
void do_dis_stop_serving_dns(DIS_DNS_CONN *dnsp)
void do_register_services(DIS_DNS_CONN *dnsp)
#define WATCHDOG_TMOUT_MAX
static void error_handler(int conn_id, int severity, int errcode, char *reason)
TIMR_ENT * dtq_add_entry(int queue_id, int time, void(*user_routine)(), dim_long tag)
sprintf(name1,"NewService%d", i)
DIS_DNS_CONN * find_dns_by_conn_id(int conn_id)