Searched refs:AF_INET (Results 1 - 19 of 19) sorted by relevance

/PHP_TRUNK/ext/sockets/
H A Dmulticast.c471 if (sock->type == AF_INET) {
536 if (sock->type == AF_INET) {
709 inet_ntop(AF_INET, addr, addr_str, sizeof(addr_str));
808 if ((((struct sockaddr*)&cur_req->ifr_addr)->sa_family == AF_INET) &&
838 inet_ntop(AF_INET, addr, addr_str, sizeof(addr_str));
H A Dsockaddr_conv.c84 /* Sets addr by hostname, or by ip in string form (AF_INET) */
102 if (host_entry->h_addrtype != AF_INET) {
103 php_error_docref(NULL, E_WARNING, "Host lookup failed: Non AF_INET domain returned on AF_INET socket");
113 /* Sets addr by hostname or by ip in string form (AF_INET or AF_INET6,
117 if (php_sock->type == AF_INET) {
121 ss->ss_family = AF_INET;
H A Dconversions.c552 do_from_zval_err(ctx, "could not resolve address '%s' to get an AF_INET "
567 if (inet_ntop(AF_INET, addr, Z_STRVAL_P(zv), size) == NULL) {
720 case AF_INET:
722 if (ctx->sock->type != AF_INET && ctx->sock->type != AF_INET6) {
731 (*sockaddr_ptr)->sa_family = AF_INET;
779 "AF_INET, AF_INET6 and AF_UNIX");
795 case AF_INET:
H A Dsockets.c91 #define PF_INET AF_INET
624 REGISTER_LONG_CONSTANT("AF_INET", AF_INET, CONST_CS | CONST_PERSISTENT);
1239 case AF_INET:
1319 case AF_INET:
1368 && arg1 != AF_INET) {
1369 php_error_docref(NULL, E_WARNING, "invalid socket domain [%pd] specified for argument 1, assuming AF_INET", arg1);
1370 arg1 = AF_INET;
1438 case AF_INET: {
1442 php_error_docref(NULL, E_WARNING, "Socket of type AF_INET require
[all...]
/PHP_TRUNK/ext/ftp/
H A Dftp.c780 sin->sin_family = AF_INET;
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_io.c235 rc = inet_pton(AF_INET, addr, &serveraddr);
237 hints.ai_family = AF_INET;
H A Dphpdbg.c872 inet_ntop(AF_INET, &(((struct sockaddr_in *)&address)->sin_addr), buffer, sizeof(buffer));
/PHP_TRUNK/win32/
H A Dsockets.c37 if(domain != AF_INET) {
51 address.sin_family = AF_INET;
H A Dsendmail.c783 if (inet_pton(AF_INET, ent->h_name, &addr) == 1 || inet_pton(AF_INET6, ent->h_name, &addr6) == 1)
785 if (inet_pton(AF_INET, ent->h_name, &addr) == 1)
819 sock_in.sin_family = AF_INET;
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_sockets.c80 if (sa->sa_family == AF_INET) {
90 if (sa->sa_family == AF_INET) {
H A Dfastcgi.c268 if (inet_pton(AF_INET, cur, &allowed_clients[n].sa_inet.sin_addr)>0) {
269 allowed_clients[n].sa.sa_family = AF_INET;
768 if (client_sa.sa.sa_family == AF_INET) {
770 if (allowed_clients[i].sa.sa_family == AF_INET
783 if (allowed_clients[i].sa.sa_family == AF_INET
1113 if (client_sa.sa.sa_family == AF_INET) {
1120 return inet_ntop(AF_INET, ((char *)&client_sa.sa_inet6.sin6_addr)+12, str, INET6_ADDRSTRLEN);
/PHP_TRUNK/main/
H A Dnetwork.c189 hints.ai_family = AF_INET; /* default to regular inet (see below) */
210 hints.ai_family = ipv6_borked ? AF_INET : AF_UNSPEC;
270 (*sap)->sa_family = AF_INET;
458 case AF_INET:
559 in4->sin_family = AF_INET;
586 case AF_INET:
625 case AF_INET:
830 case AF_INET:
848 if (sa->sa_family == AF_INET) {
965 case AF_INET
[all...]
/PHP_TRUNK/ext/standard/
H A Ddns.c62 #define AF_INET 2 /* internetwork: UDP, TCP, etc. */ macro
190 } else if (inet_pton(AF_INET, ip, &addr)) {
191 hp = gethostbyaddr((char *) &addr, sizeof(addr), AF_INET);
202 hp = gethostbyaddr((char *) &addr, sizeof(addr), AF_INET);
H A Dbasic_functions.c3843 int af = AF_INET;
3875 int ret, af = AF_INET;
3903 RETURN_STRINGL(buffer, af == AF_INET ? 4 : 16);
3925 if (addr_len == 0 || inet_pton(AF_INET, addr, &ip) != 1) {
3967 if (inet_ntop(AF_INET, &myaddr, str, sizeof(str))) {
H A Dfile.c240 #elif defined(AF_INET)
241 REGISTER_LONG_CONSTANT("STREAM_PF_INET", AF_INET, CONST_CS|CONST_PERSISTENT);
/PHP_TRUNK/sapi/cgi/
H A Dfastcgi.c612 sa.sa_inet.sin_family = AF_INET;
628 if (!hep || hep->h_addrtype != AF_INET || !hep->h_addr_list[0]) {
1216 if (((struct sockaddr *)&sa)->sa_family == AF_INET) {
/PHP_TRUNK/ext/snmp/
H A Dsnmp.c1190 } else if ((*res)->sa_family == AF_INET) {
1197 if ((*res)->sa_family != AF_INET) {
/PHP_TRUNK/sapi/cli/
H A Dphp_cli_server.c1216 case AF_INET:
1265 case AF_INET:
/PHP_TRUNK/sapi/litespeed/
H A Dlsapilib.c1302 if (((struct sockaddr *)&achPeer)->sa_family == AF_INET )
2250 case AF_INET:
2331 pAddr->sa_family = AF_INET;
2378 if ( pAddr->sa_family == AF_INET )
2490 if (((struct sockaddr *)&achPeer)->sa_family == AF_INET )

Completed in 108 milliseconds