FACT++  1.0
void dna_report_error ( int  conn_id,
int  code,
char *  routine_name,
int  severity,
int  errcode 
)

Definition at line 903 of file dna.c.

References Dna_conns, DNA_CONNECTION::error_ast, Net_conns, sprintf(), str, and tcpip_get_error().

Referenced by ast_conn_h(), ast_read_h(), dna_close(), dna_open_client(), dna_open_server(), dna_start_read(), dna_write_bytes(), save_node_task(), tcpip_write(), tcpip_write_nowait(), web_open_server(), and web_start_read().

904 {
905  char str[128], msg[1024];
906  extern void tcpip_get_error();
907 
908  sprintf(msg, "%s", routine_name);
909  if(conn_id)
910  {
911  if(Net_conns[conn_id].node[0])
912  {
913  sprintf(str," %s@%s",
914  Net_conns[conn_id].task, Net_conns[conn_id].node);
915  strcat(msg, str);
916  }
917  }
918  if(code != -1)
919  {
920  tcpip_get_error(str, code);
921  strcat(msg,": ");
922  strcat(msg, str);
923  }
924  if(Dna_conns[conn_id].error_ast)
925  {
926  Dna_conns[conn_id].error_ast(conn_id, severity, errcode, msg);
927  }
928 }
Definition: dns.c:26
DllExp DIM_NOSHARE NET_CONNECTION * Net_conns
Definition: conn_handler.c:32
char str[80]
Definition: test_client.c:7
void tcpip_get_error(char *str, int code)
Definition: tcpip.c:1842
void(* error_ast)()
Definition: dim.h:383
DllExp DIM_NOSHARE DNA_CONNECTION * Dna_conns
Definition: conn_handler.c:31
sprintf(name1,"NewService%d", i)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: