FACT++  1.0
int find_connection ( char *  node,
char *  task,
int  port 
)

Definition at line 2043 of file dic.c.

References Curr_N_Conns, Dic_conns, i, DIC_CONNECTION::node_name, and DIC_CONNECTION::port.

Referenced by handle_dns_info().

2044 {
2045  register int i;
2046  register DIC_CONNECTION *dic_connp;
2047 
2048  if(task){}
2049  for( i=0, dic_connp = Dic_conns; i<Curr_N_Conns; i++, dic_connp++ )
2050  {
2051 /*
2052  if((!strcmp(dic_connp->task_name, task))
2053  &&(!strcmp(dic_connp->node_name, node)))
2054 */
2055  if((!strcmp(dic_connp->node_name, node))
2056  && (dic_connp->port == port))
2057  return(i);
2058  }
2059  return(0);
2060 }
Definition: dns.c:26
DIM_NOSHARE DIC_CONNECTION * Dic_conns
Definition: conn_handler.c:30
DllExp DIM_NOSHARE int Curr_N_Conns
Definition: conn_handler.c:33
int i
Definition: db_dim_client.c:21
int port
Definition: dim.h:422
char node_name[MAX_NODE_NAME]
Definition: dim.h:420

+ Here is the caller graph for this function: