Definition at line 33 of file utilities.c.
References i, and MAX_NODE_NAME.
Referenced by dic_get_id(), dna_open_client(), main(), register_services(), and unregister_service().
41 extern void init_sock();
48 if( (p = getenv(
"DIM_HOST_NODE")) != NULL )
50 strcpy( node_name, p );
61 if(!strchr(node_name,
'.'))
63 if ((host = gethostbyname(node_name)) != (
struct hostent *)0)
65 strcpy(node_name,host->h_name);
66 if(!strchr(node_name,
'.'))
70 if(host->h_aliases[0])
72 for(i = 0; host->h_aliases[
i]; i++)
74 p = host->h_aliases[
i];