FACT++  1.0
void set_in_error ( int  conn_id)

Definition at line 1199 of file dns.c.

References dll_get_next(), dna_rem_test_write(), Dns_conns, DNS_CONNECTION::n_services, node::servp, SRC_DIS, and serv::state.

Referenced by check_validity().

1200 {
1201  DNS_SERVICE *servp;
1202 
1203  if(Dns_conns[conn_id].src_type == SRC_DIS)
1204  {
1205  if(strcmp(Dns_conns[conn_id].task_name,"DIS_DNS"))
1206  dna_rem_test_write(conn_id);
1207  servp = (DNS_SERVICE *)Dns_conns[conn_id].service_head;
1208  while( (servp = (DNS_SERVICE *) dll_get_next(
1209  (DLL *) Dns_conns[conn_id].service_head,
1210  (DLL *) servp)) )
1211  servp->state = -1;
1212  Dns_conns[conn_id].n_services = -1;
1213  }
1214 }
DllExp DIM_NOSHARE DNS_CONNECTION * Dns_conns
Definition: conn_handler.c:29
void dna_rem_test_write(int conn_id)
Definition: dna.c:613
Definition: dim.h:530
Definition: dis.c:69
int state
Definition: dns.c:51
int n_services
Definition: dim.h:440
DLL * dll_get_next(DLL *head, DLL *item)
Definition: dll.c:66

+ Here is the call graph for this function:

+ Here is the caller graph for this function: