Searched refs:sockin (Results 1 – 2 of 2) sorted by relevance
77 static int get_hostname(char *ipstr, struct sockaddr_in *sockin) in get_hostname() argument81 sockin->sin_family = AF_INET; in get_hostname()82 sockin->sin_port = 0; in get_hostname()85 sockin->sin_addr.s_addr = INADDR_ANY; in get_hostname()89 if (inet_aton(ipstr, &sockin->sin_addr)) return 0; in get_hostname()91 memcpy(&sockin->sin_addr, host->h_addr_list[0], sizeof(struct in_addr)); in get_hostname()
1049 struct sockaddr_in sockin; in xmlNanoHTTPConnectHost() local1057 memset (&sockin, 0, sizeof(sockin)); in xmlNanoHTTPConnectHost()1091 if ((size_t)res->ai_addrlen > sizeof(sockin)) { in xmlNanoHTTPConnectHost()1096 memcpy (&sockin, res->ai_addr, res->ai_addrlen); in xmlNanoHTTPConnectHost()1097 sockin.sin_port = htons (port); in xmlNanoHTTPConnectHost()1098 addr = (struct sockaddr *)&sockin; in xmlNanoHTTPConnectHost()1185 sockin.sin_family = h->h_addrtype; in xmlNanoHTTPConnectHost()1186 sockin.sin_addr = ia; in xmlNanoHTTPConnectHost()1187 sockin.sin_port = (unsigned short)htons ((unsigned short)port); in xmlNanoHTTPConnectHost()1188 addr = (struct sockaddr *) &sockin; in xmlNanoHTTPConnectHost()