334
331
if ((hp = ei_gethostbyname(h_hostname)) == 0) {
335
332
fprintf(stderr,"erl_call: can't resolve hostname %s\n", h_hostname);
339
336
if (flags.use_long_name == 0 && (ct = strchr(hp->h_name, '.')) != NULL) {
343
341
memcpy(&h_ipadr.s_addr, *hp->h_addr_list, sizeof(struct in_addr));
344
346
sprintf(h_nodename, "%s@%s", h_alivename, h_hostname);
346
348
if (ei_connect_xinit(&ec, h_hostname, h_alivename, h_nodename,