Lines Matching defs:host1
41 struct hostent *host1;
43 host1 = (struct hostent *) emalloc (sizeof(struct hostent));
44 host1->h_name = name;
45 host1->h_addrtype = AF_INET;
46 host1->h_aliases = name;
47 host1->h_length = 4;
48 host1->h_addr_list[0] = (char *)hostGetByName (name);
49 host1->h_addr_list[1] = NULL;
50 return host1;
55 struct hostent *host1;
57 host1 = (struct hostent *) emalloc (sizeof(struct hostent));
58 host1->h_name = name;
59 host1->h_addrtype = AF_INET;
60 host1->h_aliases = name;
61 host1->h_length = 4;
62 host1->h_addr_list = NULL;
63 return host1;