/php-src/ext/sockets/tests/ |
H A D | socket_reuseport_cbpf.phpt | 19 var_dump(socket_set_option( $socket, SOL_SOCKET, SO_REUSEADDR, true)); 20 var_dump(socket_set_option( $socket, SOL_SOCKET, SO_REUSEPORT, true)); 21 var_dump(socket_set_option( $socket, SOL_SOCKET, SO_ATTACH_REUSEPORT_CBPF, SKF_AD_CPU));
|
H A D | socket_set_option_seolinger.phpt | 18 $retval_1 = socket_set_option( $socket, SOL_SOCKET, SO_LINGER, []); 25 $retval_2 = socket_set_option( $socket, SOL_SOCKET, SO_LINGER, $options); 26 $retval_3 = socket_get_option( $socket, SOL_SOCKET, SO_LINGER); 31 var_dump(socket_set_option( $socket, SOL_SOCKET, SO_LINGER, $options_2));
|
H A D | socket_set_option_rcvtimeo.phpt | 18 $retval_1 = socket_set_option($socket, SOL_SOCKET, SO_RCVTIMEO, []); 25 $retval_2 = socket_set_option( $socket, SOL_SOCKET, SO_RCVTIMEO, $options); 26 $retval_3 = socket_get_option( $socket, SOL_SOCKET, SO_RCVTIMEO);
|
H A D | socket_set_option_sndtimeo.phpt | 18 $retval_1 = socket_set_option( $socket, SOL_SOCKET, SO_SNDTIMEO, []); 25 $retval_2 = socket_set_option( $socket, SOL_SOCKET, SO_SNDTIMEO, $options); 26 $retval_3 = socket_get_option( $socket, SOL_SOCKET, SO_SNDTIMEO);
|
H A D | socket_set_option_acf.phpt | 23 var_dump(socket_set_option( $socket, SOL_SOCKET, SO_ACCEPTFILTER, 1)); 28 var_dump(socket_set_option( $socket, SOL_SOCKET, SO_ACCEPTFILTER, "httpready")); 29 var_dump(socket_get_option( $socket, SOL_SOCKET, SO_ACCEPTFILTER));
|
H A D | socket_setopt_basic.phpt | 18 $retval_1 = socket_setopt( $socket, SOL_SOCKET, SO_SNDTIMEO, $options); 19 $retval_2 = socket_getopt( $socket, SOL_SOCKET, SO_SNDTIMEO);
|
H A D | socket_set_option_bindtodevice.phpt | 26 $retval_1 = socket_set_option( $socket, SOL_SOCKET, SO_BINDTODEVICE, "lo"); 28 $retval_2 = socket_set_option( $socket, SOL_SOCKET, SO_BINDTODEVICE, "ethIDONOTEXIST");
|
H A D | socket_cmsg_rights.phpt | 39 "level" => SOL_SOCKET, 51 "controllen" => socket_cmsg_space(SOL_SOCKET, SCM_RIGHTS, 4) 58 if ($control["level"] == SOL_SOCKET &&
|
H A D | socket_bpf_extensions.phpt | 17 $flags = socket_getopt( $socket, SOL_SOCKET, SO_BPF_EXTENSIONS);
|
H A D | socket_cmsg_credentials.phpt | 36 socket_set_option($s, SOL_SOCKET, SO_PASSCRED, 1) or die("could not set SO_PASSCRED"); 49 "controllen" => socket_cmsg_space(SOL_SOCKET, SCM_CREDENTIALS)
|
H A D | socket_set_option_error_socket_option.phpt | 27 socket_set_option( $socket, SOL_SOCKET, 1, 1);
|
H A D | socket_meminfo.phpt | 44 $data = socket_get_option($socket, SOL_SOCKET, SO_MEMINFO);
|
H A D | socket_sendto_zerocopy.phpt | 28 if (!socket_set_option($socket, SOL_SOCKET, SO_ZEROCOPY, 1)) {
|
H A D | socket_cmsg_credentials_fbsd.phpt | 40 "controllen" => socket_cmsg_space(SOL_SOCKET, SCM_CREDS2, 1)
|
H A D | socket_import_stream-4-win.phpt | 35 print_r(socket_get_option($sock, SOL_SOCKET, SO_TYPE));
|
H A D | socket_import_stream-4.phpt | 35 print_r(socket_get_option($sock, SOL_SOCKET, SO_TYPE));
|
H A D | socket_export_stream-4.phpt | 35 print_r(socket_get_option($sock, SOL_SOCKET, SO_TYPE));
|
H A D | socket_export_stream-4-win.phpt | 35 print_r(socket_get_option($sock, SOL_SOCKET, SO_TYPE));
|
/php-src/ext/sockets/ |
H A D | sendrecvmsg.c | 128 to_zval_read_ucred, SOL_SOCKET, SCM_CREDENTIALS); in init_ancillary_registry() 131 to_zval_read_ucred, SOL_SOCKET, SCM_CREDS); in init_ancillary_registry() 137 to_zval_read_ucred, SOL_SOCKET, SCM_CREDS2); in init_ancillary_registry() 140 to_zval_read_ucred, SOL_SOCKET, SCM_CREDS); in init_ancillary_registry() 145 to_zval_read_fd_array, SOL_SOCKET, SCM_RIGHTS); in init_ancillary_registry()
|
H A D | sockets.c | 1728 if (level == SOL_SOCKET) { 2315 if (getsockopt(socket, SOL_SOCKET, SO_DOMAIN, &type, &type_len) == 0) { 2418 getsockopt(socket->bsd_socket, SOL_SOCKET, SO_TYPE, (char *) &protoid, &protoidlen); 2424 getsockopt(socket->bsd_socket, SOL_SOCKET, SO_PROTOCOL, (char *) &protoid, &protoidlen); 2440 getsockopt(socket->bsd_socket, SOL_SOCKET, SO_TYPE, (char *) &type, &typelen);
|
H A D | sockets.stub.php | 402 const SOL_SOCKET = UNKNOWN; define
|
/php-src/sapi/fpm/fpm/ |
H A D | fpm_sockets.c | 218 if (0 > setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &flags, sizeof(flags))) { in fpm_sockets_new_listening_socket() 266 …if (0 > setsockopt(sock, SOL_SOCKET, SO_SETFIB, &wp->config->listen_setfib, sizeof(wp->config->lis… in fpm_sockets_new_listening_socket() 622 if (0 > getsockopt(sock, SOL_SOCKET, SO_LISTENQLEN, &val, &len)) { in fpm_socket_get_listening_queue() 630 if (0 > getsockopt(sock, SOL_SOCKET, SO_LISTENQLIMIT, &val, &len)) { in fpm_socket_get_listening_queue()
|
/php-src/main/ |
H A D | network.c | 365 if (getsockopt(sockfd, SOL_SOCKET, SO_ERROR, (char*)&error, &len) != 0) { 459 setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (char*)&sockoptval, sizeof(sockoptval)); 469 setsockopt(sock, SOL_SOCKET, SO_REUSEPORT, (char*)&sockoptval, sizeof(sockoptval)); 474 setsockopt(sock, SOL_SOCKET, SO_BROADCAST, (char*)&sockoptval, sizeof(sockoptval)); 895 setsockopt(sock, SOL_SOCKET, SO_BROADCAST, (char*)&val, sizeof(val));
|
/php-src/sapi/fpm/tests/ |
H A D | fcgi.inc | 164 socket_set_option($socket, SOL_SOCKET, SO_KEEPALIVE, 1); 288 socket_set_option($this->socket, SOL_SOCKET, SO_KEEPALIVE, 1);
|
/php-src/ext/mysqlnd/ |
H A D | mysqlnd_vio.c | 60 int result = setsockopt(socketd, SOL_SOCKET, SO_KEEPALIVE, (char *) &flag, sizeof(int)); in mysqlnd_set_sock_keepalive()
|