Home
last modified time | relevance | path

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

12

/PHP-8.2/ext/sockets/tests/
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.phpt38 "level" => SOL_SOCKET,
50 "controllen" => socket_cmsg_space(SOL_SOCKET, SCM_RIGHTS, 4)
57 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.phpt35 socket_set_option($s, SOL_SOCKET, SO_PASSCRED, 1) or die("could not set SO_PASSCRED");
48 "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.phpt39 "controllen" => socket_cmsg_space(SOL_SOCKET, SCM_CREDS2, 1)
H A Dsocket_import_stream-4-win.phpt34 print_r(socket_get_option($sock, SOL_SOCKET, SO_TYPE));
H A Dsocket_import_stream-4.phpt34 print_r(socket_get_option($sock, SOL_SOCKET, SO_TYPE));
H A Dsocket_export_stream-4.phpt34 print_r(socket_get_option($sock, SOL_SOCKET, SO_TYPE));
H A Dsocket_export_stream-4-win.phpt34 print_r(socket_get_option($sock, SOL_SOCKET, SO_TYPE));
/PHP-8.2/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.c1655 if (level == SOL_SOCKET) {
2134 if (getsockopt(socket, SOL_SOCKET, SO_DOMAIN, &type, &type_len) == 0) {
2237 getsockopt(socket->bsd_socket, SOL_SOCKET, SO_TYPE, (char *) &protoid, &protoidlen);
2243 getsockopt(socket->bsd_socket, SOL_SOCKET, SO_PROTOCOL, (char *) &protoid, &protoidlen);
2259 getsockopt(socket->bsd_socket, SOL_SOCKET, SO_TYPE, (char *) &type, &typelen);
H A Dsockets.stub.php324 const SOL_SOCKET = UNKNOWN; define
H A Dsockets_arginfo.h435 REGISTER_LONG_CONSTANT("SOL_SOCKET", SOL_SOCKET, CONST_PERSISTENT); in register_sockets_symbols()
/PHP-8.2/ext/standard/tests/mail/
H A Dmail_skipif.inc8 socket_set_option($socket, SOL_SOCKET, SO_RCVTIMEO, array('sec' => 10, 'usec' => 10));
/PHP-8.2/sapi/fpm/fpm/
H A Dfpm_sockets.c217 if (0 > setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &flags, sizeof(flags))) { in fpm_sockets_new_listening_socket()
265 …if (0 > setsockopt(sock, SOL_SOCKET, SO_SETFIB, &wp->config->listen_setfib, sizeof(wp->config->lis… in fpm_sockets_new_listening_socket()
606 if (0 > getsockopt(sock, SOL_SOCKET, SO_LISTENQLEN, &val, &len)) { in fpm_socket_get_listening_queue()
614 if (0 > getsockopt(sock, SOL_SOCKET, SO_LISTENQLIMIT, &val, &len)) { in fpm_socket_get_listening_queue()
/PHP-8.2/main/
H A Dnetwork.c367 if (getsockopt(sockfd, SOL_SOCKET, SO_ERROR, (char*)&error, &len) != 0) {
461 setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (char*)&sockoptval, sizeof(sockoptval));
471 setsockopt(sock, SOL_SOCKET, SO_REUSEPORT, (char*)&sockoptval, sizeof(sockoptval));
476 setsockopt(sock, SOL_SOCKET, SO_BROADCAST, (char*)&sockoptval, sizeof(sockoptval));
911 setsockopt(sock, SOL_SOCKET, SO_BROADCAST, (char*)&val, sizeof(val));
/PHP-8.2/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 32 milliseconds

12