Home
last modified time | relevance | path

Searched refs:SOL_SOCKET (Results 1 – 25 of 29) sorted by relevance

12

/php-src/ext/sockets/tests/
H A Dsocket_reuseport_cbpf.phpt19 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 Dsocket_set_option_seolinger.phpt18 $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 Dsocket_set_option_rcvtimeo.phpt18 $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 Dsocket_set_option_sndtimeo.phpt18 $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 Dsocket_set_option_acf.phpt23 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 Dsocket_setopt_basic.phpt18 $retval_1 = socket_setopt( $socket, SOL_SOCKET, SO_SNDTIMEO, $options);
19 $retval_2 = socket_getopt( $socket, SOL_SOCKET, SO_SNDTIMEO);
H A Dsocket_set_option_bindtodevice.phpt26 $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 Dsocket_cmsg_rights.phpt39 "level" => SOL_SOCKET,
51 "controllen" => socket_cmsg_space(SOL_SOCKET, SCM_RIGHTS, 4)
58 if ($control["level"] == SOL_SOCKET &&
H A Dsocket_bpf_extensions.phpt17 $flags = socket_getopt( $socket, SOL_SOCKET, SO_BPF_EXTENSIONS);
H A Dsocket_cmsg_credentials.phpt36 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 Dsocket_set_option_error_socket_option.phpt27 socket_set_option( $socket, SOL_SOCKET, 1, 1);
H A Dsocket_meminfo.phpt44 $data = socket_get_option($socket, SOL_SOCKET, SO_MEMINFO);
H A Dsocket_sendto_zerocopy.phpt28 if (!socket_set_option($socket, SOL_SOCKET, SO_ZEROCOPY, 1)) {
H A Dsocket_cmsg_credentials_fbsd.phpt40 "controllen" => socket_cmsg_space(SOL_SOCKET, SCM_CREDS2, 1)
H A Dsocket_import_stream-4-win.phpt35 print_r(socket_get_option($sock, SOL_SOCKET, SO_TYPE));
H A Dsocket_import_stream-4.phpt35 print_r(socket_get_option($sock, SOL_SOCKET, SO_TYPE));
H A Dsocket_export_stream-4.phpt35 print_r(socket_get_option($sock, SOL_SOCKET, SO_TYPE));
H A Dsocket_export_stream-4-win.phpt35 print_r(socket_get_option($sock, SOL_SOCKET, SO_TYPE));
/php-src/ext/sockets/
H A Dsendrecvmsg.c128 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 Dsockets.c1728 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 Dsockets.stub.php402 const SOL_SOCKET = UNKNOWN; define
/php-src/sapi/fpm/fpm/
H A Dfpm_sockets.c218 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 Dnetwork.c365 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 Dfcgi.inc164 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 Dmysqlnd_vio.c60 int result = setsockopt(socketd, SOL_SOCKET, SO_KEEPALIVE, (char *) &flag, sizeof(int)); in mysqlnd_set_sock_keepalive()

Completed in 52 milliseconds

12