Lines Matching refs:hostaddr
965 struct sockaddr_storage hostaddr;
966 getip(ip, &hostaddr);
968 if (hostaddr.ss_family == AF_INET)
970 kDNSServiceType_A, kDNSServiceClass_IN, 4, &((struct sockaddr_in *)&hostaddr)->sin_addr, 240, MyRegisterRecordCallback, (void*)host));
971 else if (hostaddr.ss_family == AF_INET6)
973 kDNSServiceType_AAAA, kDNSServiceClass_IN, 16, &((struct sockaddr_in6*)&hostaddr)->sin6_addr, 240, MyRegisterRecordCallback, (void*)host));