FACT++  1.0
int dic_get_server ( char *  name)

Definition at line 2305 of file dic.c.

References Curr_conn_id, dna_get_node_task(), MAX_NODE_NAME, and MAX_TASK_NAME.

Referenced by DimClient::getServerId(), DimClient::getServerName(), and Java_dim_Client_getServer().

2306 {
2307  int ret = 0;
2308  char node[MAX_NODE_NAME], task[MAX_TASK_NAME];
2309 
2310  DISABLE_AST
2311 
2312  if(Curr_conn_id)
2313  {
2314  dna_get_node_task(Curr_conn_id, node, task);
2315  strcpy(name,task);
2316  strcat(name,"@");
2317  strcat(name,node);
2318  ret = Curr_conn_id;
2319  }
2320  ENABLE_AST
2321  return(ret);
2322 }
Definition: dns.c:26
#define MAX_TASK_NAME
Definition: dim.h:181
static int Curr_conn_id
Definition: dic.c:54
int dna_get_node_task(int conn_id, char *node, char *task)
Definition: dna.c:594
#define MAX_NODE_NAME
Definition: dim.h:180

+ Here is the call graph for this function:

+ Here is the caller graph for this function: