Home
last modified time | relevance | path

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

/PHP-7.4/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.c490 struct addrinfo *addr = rsrc->ptr; in php_destroy_addrinfo()
2573 struct addrinfo hints, *result, *rp, *res;
2614 res = emalloc(sizeof(struct addrinfo));
2615 memcpy(res, rp, sizeof(struct addrinfo));
2638 struct addrinfo *ai;
2645 …if ((ai = (struct addrinfo *) zend_fetch_resource(Z_RES_P(arg1), le_addrinfo_name, le_addrinfo)) =…
2704 struct addrinfo *ai;
2711 …if ((ai = (struct addrinfo *) zend_fetch_resource(Z_RES_P(arg1), le_addrinfo_name, le_addrinfo)) =…
2769 struct addrinfo *ai;
2775 …if ((ai = (struct addrinfo *) zend_fetch_resource(Z_RES_P(arg1), le_addrinfo_name, le_addrinfo)) =…
/PHP-7.4/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_lookup.phpt10 $addrinfo = socket_addrinfo_lookup('127.0.0.1', 2000, array(
15 var_dump($addrinfo[0]);
H A Dai_idn_deprecation.phpt10 $addrinfo = socket_addrinfo_lookup('127.0.0.1', 2000, array(
15 var_dump(socket_addrinfo_connect($addrinfo[0]));
H A Dsocket_addrinfo_explain.phpt10 $addrinfo = socket_addrinfo_lookup('127.0.0.1', 2000, array(
14 $result = socket_addrinfo_explain($addrinfo[0]);
/PHP-7.4/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.4/sapi/fpm/fpm/
H A Dfpm_sockets.c280 struct addrinfo hints, *servinfo, *p; in fpm_socket_af_inet_socket_by_addr()
/PHP-7.4/main/
H A Dnetwork.c166 struct addrinfo hints, *res, *sai; in php_network_getaddresses()
/PHP-7.4/
H A Dconfigure.ac664 [[struct addrinfo *g,h;g=&h;getaddrinfo("","",g,&g);]])],[AC_RUN_IFELSE([AC_LANG_SOURCE([[
672 struct addrinfo *ai, *pai, hints;
/PHP-7.4/sapi/litespeed/
H A Dlsapilib.c2624 struct addrinfo *res, hints; in LSAPI_ParseSockAddr()

Completed in 37 milliseconds