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

/PHP_5_5/win32/
H A Dsendmail.c797 if (inet_pton(AF_INET, ent->h_name, &addr) == 1 || inet_pton(AF_INET6, ent->h_name, &addr6) == 1)
799 if (inet_pton(AF_INET, ent->h_name, &addr) == 1)
831 sock_in.sin_family = AF_INET;
H A Dsockets.c37 if(domain != AF_INET) {
51 address.sin_family = AF_INET;
/PHP_5_5/ext/sockets/
H A Dconversions.c560 do_from_zval_err(ctx, "could not resolve address '%s' to get an AF_INET "
575 if (inet_ntop(AF_INET, addr, Z_STRVAL_P(zv), size) == NULL) {
740 case AF_INET:
742 if (ctx->sock->type != AF_INET && ctx->sock->type != AF_INET6) {
751 (*sockaddr_ptr)->sa_family = AF_INET;
799 "AF_INET, AF_INET6 and AF_UNIX");
815 case AF_INET:
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 TSRMLS_CC, 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 Dmulticast.c467 if (sock->type == AF_INET) {
532 if (sock->type == AF_INET) {
705 inet_ntop(AF_INET, addr, addr_str, sizeof(addr_str));
804 if ((((struct sockaddr*)&cur_req->ifr_addr)->sa_family == AF_INET) &&
834 inet_ntop(AF_INET, addr, addr_str, sizeof(addr_str));
H A Dsockets.c91 #define PF_INET AF_INET
615 REGISTER_LONG_CONSTANT("AF_INET", AF_INET, CONST_CS | CONST_PERSISTENT);
1220 case AF_INET:
1298 case AF_INET:
1347 && arg1 != AF_INET) {
1348 php_error_docref(NULL TSRMLS_CC, E_WARNING, "invalid socket domain [%ld] specified for argument 1, assuming AF_INET", arg1);
1349 arg1 = AF_INET;
1414 case AF_INET: {
1418 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Socket of type AF_INET require
[all...]
/PHP_5_5/sapi/fpm/fpm/
H A Dfpm_sockets.c49 hints.ai_family = AF_INET;
290 sa_in.sin_family = AF_INET;
H A Dfastcgi.c812 if (sa.sa.sa_family == AF_INET && req->fd >= 0 && allowed_clients) {
/PHP_5_5/ext/snmp/
H A Dsnmp.c1200 } else if ((*res)->sa_family == AF_INET) {
1207 if ((*res)->sa_family != AF_INET) {
/PHP_5_5/ext/ftp/
H A Dftp.c781 sin->sin_family = AF_INET;
/PHP_5_5/sapi/cgi/
H A Dfastcgi.c603 sa.sa_inet.sin_family = AF_INET;
615 if (!hep || hep->h_addrtype != AF_INET || !hep->h_addr_list[0]) {
1183 if (((struct sockaddr *)&sa)->sa_family == AF_INET) {
/PHP_5_5/ext/standard/
H A Dfile.c237 #elif defined(AF_INET)
238 REGISTER_LONG_CONSTANT("STREAM_PF_INET", AF_INET, CONST_CS|CONST_PERSISTENT);
H A Dbasic_functions.c3874 int address_len, af = AF_INET;
3906 int ret, af = AF_INET;
3934 RETURN_STRINGL(buffer, af == AF_INET ? 4 : 16, 1);
3956 if (addr_len == 0 || inet_pton(AF_INET, addr, &ip) != 1) {
3998 if (inet_ntop(AF_INET, &myaddr, str, sizeof(str))) {
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);
/PHP_5_5/sapi/litespeed/
H A Dlsapilib.c1302 if (((struct sockaddr *)&achPeer)->sa_family == AF_INET )
2227 case AF_INET:
2308 pAddr->sa_family = AF_INET;
2355 if ( pAddr->sa_family == AF_INET )
2467 if (((struct sockaddr *)&achPeer)->sa_family == AF_INET )
/PHP_5_5/sapi/cli/
H A Dphp_cli_server.c1319 case AF_INET:
1368 case AF_INET:
/PHP_5_5/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;
265 (*sap)->sa_family = AF_INET;
452 case AF_INET:
546 in4->sin_family = AF_INET;
573 case AF_INET:
612 case AF_INET:
820 case AF_INET:
838 if (sa->sa_family == AF_INET) {
946 case AF_INET
[all...]

Completed in 49 milliseconds