Searched defs:addrinfo (Results 1 - 1 of 1) sorted by relevance

/PHP_5_6/ext/sockets/
H A Dsockaddr_conv.c20 struct addrinfo hints;
21 struct addrinfo *addrinfo = NULL; local
30 memset(&hints, 0, sizeof(struct addrinfo));
37 getaddrinfo(string, NULL, &hints, &addrinfo);
38 if (!addrinfo) {
46 if (addrinfo->ai_family != PF_INET6 || addrinfo->ai_addrlen != sizeof(struct sockaddr_in6)) {
48 freeaddrinfo(addrinfo);
52 memcpy(&(sin6->sin6_addr.s6_addr), ((struct sockaddr_in6*)(addrinfo
[all...]

Completed in 11 milliseconds