FACT++  1.0
int dis_find_client_conns ( )

Definition at line 2406 of file dis.c.

References Curr_N_Conns, dna_close(), Dna_conns, i, and Net_conns.

Referenced by dis_stop_serving().

2407 {
2408  int i;
2409  int n = 0;
2410 
2411  for( i = 0; i< Curr_N_Conns; i++ )
2412  {
2413  if(Net_conns[i].channel != 0)
2414  {
2415  if(Dna_conns[i].read_ast == dis_insert_request)
2416  {
2417  dna_close(i);
2418  }
2419  else
2420  {
2421  n++;
2422  }
2423  }
2424  }
2425  return(n);
2426 }
DllExp DIM_NOSHARE int Curr_N_Conns
Definition: conn_handler.c:33
int i
Definition: db_dim_client.c:21
DllExp DIM_NOSHARE NET_CONNECTION * Net_conns
Definition: conn_handler.c:32
int dna_close(int conn_id)
Definition: dna.c:835
static void dis_insert_request(int conn_id, DIC_PACKET *dic_packet, int size, int status)
Definition: dis.c:1251
DllExp DIM_NOSHARE DNA_CONNECTION * Dna_conns
Definition: conn_handler.c:31

+ Here is the call graph for this function:

+ Here is the caller graph for this function: