FACT++  1.0
static void error_handler ( int  conn_id,
int  severity,
int  errcode,
char *  reason 
)
static

Definition at line 2827 of file dis_old.c.

References Curr_conn_id, DIM_FATAL, dim_print_msg(), Error_conn_id, Error_user_routine, and exit_handler().

Referenced by dis_get_n_clients(), dis_get_timeout(), dis_get_timestamp(), dis_remove_service(), dis_send_service(), dis_set_quality(), dis_set_timestamp(), dis_start_serving_dns(), do_dis_add_cmnd_dns(), do_dis_add_service_dns(), do_update_service(), and recv_dns_dis_rout().

2828 {
2829  int exit_tag, exit_code, exit_size;
2830  int last_conn_id;
2831 
2832  if(Error_user_routine)
2833  {
2834  Error_conn_id = conn_id;
2835  last_conn_id = Curr_conn_id;
2836  Curr_conn_id = conn_id;
2837  (Error_user_routine)( severity, errcode, reason);
2838  Error_conn_id = 0;
2839  Curr_conn_id = last_conn_id;
2840  }
2841  else
2842  {
2843  dim_print_msg(reason, severity);
2844  }
2845  if(severity == DIM_FATAL)
2846  {
2847  exit_tag = 0;
2848  exit_code = errcode;
2849  exit_size = sizeof(int);
2850  exit_handler(&exit_tag, &exit_code, &exit_size);
2851  }
2852 }
static void exit_handler(int *tag, int *bufp, int *size)
Definition: dis_old.c:2811
static int Error_conn_id
Definition: dis_old.c:128
static void(* Error_user_routine)()=0
Definition: dis_old.c:127
static int Curr_conn_id
Definition: dis_old.c:123
void dim_print_msg(char *msg, int severity)
Definition: utilities.c:180

+ Here is the call graph for this function:

+ Here is the caller graph for this function: