FACT++  1.0
void conn_arr_create ( SRC_TYPES  type)

Definition at line 49 of file conn_handler.c.

References CONN_BLOCK, Curr_N_Conns, Dic_conns, Dna_conns, Dns_conns, My_type, Net_conns, SRC_DIC, SRC_DNA, SRC_DNS, and id_item::type.

Referenced by dna_init(), main(), request_command(), and request_service().

50 {
51 
52  if( Curr_N_Conns == 0 )
54 
55  switch(type)
56  {
57  case SRC_DIC :
59  calloc( (size_t)Curr_N_Conns, sizeof(DIC_CONNECTION) );
60  My_type = type;
61  break;
62  case SRC_DNS :
64  calloc( (size_t)Curr_N_Conns, sizeof(DNS_CONNECTION) );
65  My_type = type;
66  break;
67  case SRC_DNA :
69  calloc( (size_t)Curr_N_Conns, sizeof(DNA_CONNECTION) );
71  calloc( (size_t)Curr_N_Conns, sizeof(NET_CONNECTION) );
72  break;
73  default:
74  break;
75  }
76 }
DllExp DIM_NOSHARE int Curr_N_Conns
Definition: conn_handler.c:33
DllExp DIM_NOSHARE DNS_CONNECTION * Dns_conns
Definition: conn_handler.c:29
int type
static SRC_TYPES My_type
Definition: conn_handler.c:20
DllExp DIM_NOSHARE NET_CONNECTION * Net_conns
Definition: conn_handler.c:32
#define CONN_BLOCK
Definition: dim.h:162
DIM_NOSHARE DIC_CONNECTION * Dic_conns
Definition: conn_handler.c:30
DllExp DIM_NOSHARE DNA_CONNECTION * Dna_conns
Definition: conn_handler.c:31

+ Here is the caller graph for this function: