Searched refs:sockin (Results 1 – 2 of 2) sorted by relevance
78 static int get_hostname(char *ipstr, struct sockaddr_in *sockin) in get_hostname() argument82 sockin->sin_family = AF_INET; in get_hostname()83 sockin->sin_port = 0; in get_hostname()86 sockin->sin_addr.s_addr = INADDR_ANY; in get_hostname()90 if (inet_aton(ipstr, &sockin->sin_addr)) return 0; in get_hostname()92 memcpy(&sockin->sin_addr, host->h_addr_list[0], sizeof(struct in_addr)); in get_hostname()
1044 struct sockaddr_in sockin; in xmlNanoHTTPConnectHost() local1053 memset (&sockin, 0, sizeof(sockin)); in xmlNanoHTTPConnectHost()1087 if (res->ai_addrlen > sizeof(sockin)) { in xmlNanoHTTPConnectHost()1092 memcpy (&sockin, res->ai_addr, res->ai_addrlen); in xmlNanoHTTPConnectHost()1093 sockin.sin_port = htons (port); in xmlNanoHTTPConnectHost()1094 addr = (struct sockaddr *)&sockin; in xmlNanoHTTPConnectHost()1177 sockin.sin_family = h->h_addrtype; in xmlNanoHTTPConnectHost()1178 sockin.sin_addr = ia; in xmlNanoHTTPConnectHost()1179 sockin.sin_port = (unsigned short)htons ((unsigned short)port); in xmlNanoHTTPConnectHost()1180 addr = (struct sockaddr *) &sockin; in xmlNanoHTTPConnectHost()