FACT++  1.0
static void release_conn ( int  conn_id)
static

Definition at line 2121 of file dic.c.

References Debug_on, Dic_conns, dim_print_date_time(), dna_close(), Memory::free(), DIC_CONNECTION::node_name, DIC_CONNECTION::port, DIC_CONNECTION::service_head, and DIC_CONNECTION::task_name.

Referenced by recv_rout(), and release_service().

2122 {
2123  register DIC_CONNECTION *dic_connp = &Dic_conns[conn_id];
2124 
2125  if(Debug_on)
2126  {
2128  printf("Conn %d, Server %s on node %s completely released\n",
2129  conn_id, dic_connp->task_name, dic_connp->node_name);
2130  fflush(stdout);
2131  }
2132  dic_connp->task_name[0] = '\0';
2133  dic_connp->port = 0;
2134  if(dic_connp->service_head)
2135  {
2136  free((DIC_SERVICE *)dic_connp->service_head);
2137  dic_connp->service_head = (char *)0;
2138  }
2139  dna_close(conn_id);
2140 }
DIM_NOSHARE DIC_CONNECTION * Dic_conns
Definition: conn_handler.c:30
char * service_head
Definition: dim.h:424
int dna_close(int conn_id)
Definition: dna.c:835
Definition: dim.h:457
int port
Definition: dim.h:422
char node_name[MAX_NODE_NAME]
Definition: dim.h:420
void free(void *mem)
void dim_print_date_time()
Definition: utilities.c:134
char task_name[MAX_TASK_NAME]
Definition: dim.h:421
static int Debug_on
Definition: dic.c:59

+ Here is the call graph for this function:

+ Here is the caller graph for this function: