Home
last modified time | relevance | path

Searched refs:addrinfo (Results 1 – 12 of 12) sorted by relevance

/PHP-7.2/ext/sockets/
H A Dsockaddr_conv.c20 struct addrinfo hints; in php_set_inet6_addr()
21 struct addrinfo *addrinfo = NULL; in php_set_inet6_addr() local
30 memset(&hints, 0, sizeof(struct addrinfo)); in php_set_inet6_addr()
37 getaddrinfo(string, NULL, &hints, &addrinfo); in php_set_inet6_addr()
38 if (!addrinfo) { in php_set_inet6_addr()
46 if (addrinfo->ai_family != PF_INET6 || addrinfo->ai_addrlen != sizeof(struct sockaddr_in6)) { in php_set_inet6_addr()
48 freeaddrinfo(addrinfo); in php_set_inet6_addr()
52 …memcpy(&(sin6->sin6_addr.s6_addr), ((struct sockaddr_in6*)(addrinfo->ai_addr))->sin6_addr.s6_addr,… in php_set_inet6_addr()
53 freeaddrinfo(addrinfo); in php_set_inet6_addr()
H A Dsockets.c457 struct addrinfo *addr = rsrc->ptr; in php_destroy_addrinfo()
2549 struct addrinfo hints, *result, *rp, *res;
2583 res = emalloc(sizeof(struct addrinfo));
2584 memcpy(res, rp, sizeof(struct addrinfo));
2607 struct addrinfo *ai;
2614 …if ((ai = (struct addrinfo *) zend_fetch_resource(Z_RES_P(arg1), le_addrinfo_name, le_addrinfo)) =…
2673 struct addrinfo *ai;
2680 …if ((ai = (struct addrinfo *) zend_fetch_resource(Z_RES_P(arg1), le_addrinfo_name, le_addrinfo)) =…
2738 struct addrinfo *ai;
2744 …if ((ai = (struct addrinfo *) zend_fetch_resource(Z_RES_P(arg1), le_addrinfo_name, le_addrinfo)) =…
/PHP-7.2/ext/sockets/tests/
H A Dsocket_addrinfo_bind.phpt10 $addrinfo = socket_addrinfo_lookup('127.0.0.1', 2000, array(
14 var_dump(socket_addrinfo_bind($addrinfo[0]));
H A Dsocket_addrinfo_connect.phpt10 $addrinfo = socket_addrinfo_lookup('127.0.0.1', 2000, array(
14 var_dump(socket_addrinfo_connect($addrinfo[0]));
H A Dsocket_addrinfo_explain.phpt10 $addrinfo = socket_addrinfo_lookup('127.0.0.1', 2000, array(
14 var_dump(socket_addrinfo_explain($addrinfo[0]));
H A Dsocket_addrinfo_lookup.phpt10 $addrinfo = socket_addrinfo_lookup('127.0.0.1', 2000, array(
15 var_dump($addrinfo[0]);
/PHP-7.2/sapi/phpdbg/
H A Dphpdbg_io.h36 …I int phpdbg_create_listenable_socket(const char *addr, unsigned short port, struct addrinfo *res);
H A Dphpdbg_io.c239 struct addrinfo res;
257 …phpdbg_create_listenable_socket(const char *addr, unsigned short port, struct addrinfo *addr_res) {
261 struct addrinfo hints, *res = NULL;
/PHP-7.2/sapi/fpm/fpm/
H A Dfpm_sockets.c273 struct addrinfo hints, *servinfo, *p; in fpm_socket_af_inet_socket_by_addr()
/PHP-7.2/main/
H A Dnetwork.c167 struct addrinfo hints, *res, *sai; in php_network_getaddresses()
/PHP-7.2/
H A Dconfigure.ac691 [struct addrinfo *g,h;g=&h;getaddrinfo("","",g,&g);],
699 struct addrinfo *ai, *pai, hints;
/PHP-7.2/sapi/litespeed/
H A Dlsapilib.c2615 struct addrinfo *res, hints; in LSAPI_ParseSockAddr()

Completed in 53 milliseconds