Home
last modified time | relevance | path

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

/PHP-8.3/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.c155 struct addrinfo addrinfo; member
189 efree(address_info->addrinfo.ai_addr); in address_info_free_obj()
2374 struct addrinfo hints, *result, *rp;
2416 memcpy(&res->addrinfo, rp, sizeof(struct addrinfo));
2450 …php_sock->bsd_socket = socket(ai->addrinfo.ai_family, ai->addrinfo.ai_socktype, ai->addrinfo.ai_pr…
2451 php_sock->type = ai->addrinfo.ai_family;
2477 retval = bind(php_sock->bsd_socket, ai->addrinfo.ai_addr, ai->addrinfo.ai_addrlen);
2513 …php_sock->bsd_socket = socket(ai->addrinfo.ai_family, ai->addrinfo.ai_socktype, ai->addrinfo.ai_pr…
2514 php_sock->type = ai->addrinfo.ai_family;
2540 retval = connect(php_sock->bsd_socket, ai->addrinfo.ai_addr, ai->addrinfo.ai_addrlen);
[all …]
/PHP-8.3/ext/sockets/tests/
H A Dsocket_addrinfo_bind.phpt7 $addrinfo = socket_addrinfo_lookup('127.0.0.1', 2000, array(
11 var_dump(socket_addrinfo_bind($addrinfo[0]));
H A Dsocket_addrinfo_connect.phpt7 $addrinfo = socket_addrinfo_lookup('127.0.0.1', 2000, array(
11 var_dump(socket_addrinfo_connect($addrinfo[0]));
H A Dsocket_addrinfo_lookup.phpt8 $addrinfo = socket_addrinfo_lookup('127.0.0.1', 2000, array(
13 var_dump($addrinfo[0]);
H A Dsocket_addrinfo_explain.phpt7 $addrinfo = socket_addrinfo_lookup('127.0.0.1', 2000, array(
11 $result = socket_addrinfo_explain($addrinfo[0]);
/PHP-8.3/sapi/fpm/fpm/
H A Dfpm_sockets.c306 struct addrinfo hints, *servinfo, *p; in fpm_socket_af_inet_socket_by_addr()
/PHP-8.3/main/
H A Dnetwork.c164 struct addrinfo hints, *res, *sai;
/PHP-8.3/
H A Dconfigure.ac667 [[struct addrinfo *g,h;g=&h;getaddrinfo("","",g,&g);]])],[AC_RUN_IFELSE([AC_LANG_SOURCE([[
677 struct addrinfo *ai, *pai, hints;
/PHP-8.3/sapi/litespeed/
H A Dlsapilib.c2638 struct addrinfo *res, hints; in LSAPI_ParseSockAddr()

Completed in 62 milliseconds