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

Definition at line 3199 of file dis.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().

3200 {
3201  int exit_tag, exit_code, exit_size;
3202  int last_conn_id;
3203 
3204  if(Error_user_routine)
3205  {
3206  Error_conn_id = conn_id;
3207  last_conn_id = Curr_conn_id;
3208  Curr_conn_id = conn_id;
3209  (Error_user_routine)( severity, errcode, reason);
3210  Error_conn_id = 0;
3211  Curr_conn_id = last_conn_id;
3212  }
3213  else
3214  {
3215  dim_print_msg(reason, severity);
3216  }
3217  if(severity == DIM_FATAL)
3218  {
3219  exit_tag = 0;
3220  if(exit == -1)
3221  exit_code = errcode;
3222  else
3223  exit_code = exit;
3224  exit_size = sizeof(int);
3225  exit_handler(&exit_tag, &exit_code, &exit_size);
3226  }
3227 }
static int Error_conn_id
Definition: dis.c:128
static int Curr_conn_id
Definition: dis.c:123
static void exit_handler(int *tag, int *bufp, int *size)
Definition: dis.c:3183
void dim_print_msg(char *msg, int severity)
Definition: utilities.c:180
static void(* Error_user_routine)()=0
Definition: dis.c:127

+ Here is the call graph for this function:

+ Here is the caller graph for this function: