Lines Matching defs:hp
58 struct hostent *hp;
65 hp = gethostbyname(my_machine_name);
67 if (hp == (struct hostent *) 0) {
73 if (hp->h_addrtype != AF_INET) {
79 bcopy(hp->h_addr, (char *)&my_machine_addr, hp->h_length);
94 hp = gethostbyname(rem_machine_name);
96 if (hp == (struct hostent *) 0) {
102 if (hp->h_addrtype != AF_INET) {
108 bcopy(hp->h_addr, (char *) &rem_machine_addr, hp->h_length);