Home
last modified time | relevance | path

Searched refs:socket_set_option (Results 1 – 25 of 31) sorted by relevance

12

/PHP-8.2/ext/sockets/tests/
H A Dsocket_set_option_seolinger.phpt2 Test if socket_set_option() works, option:SO_SEOLINGER
18 $retval_1 = socket_set_option( $socket, SOL_SOCKET, SO_LINGER, []);
25 $retval_2 = socket_set_option( $socket, SOL_SOCKET, SO_LINGER, $options);
31 var_dump(socket_set_option( $socket, SOL_SOCKET, SO_LINGER, $options_2));
44 socket_set_option(): Argument #4 ($value) must have key "l_onoff"
45 socket_set_option(): Argument #4 ($value) must have key "l_linger"
H A Dmcast_ipv4_send.phpt9 if (socket_set_option($s, IPPROTO_IP, IP_MULTICAST_IF, 1) === false) {
19 $r = socket_set_option($s, $level, IP_MULTICAST_TTL, 9);
26 $r = socket_set_option($s, $level, IP_MULTICAST_LOOP, 0);
30 $r = socket_set_option($s, $level, IP_MULTICAST_LOOP, 1);
38 $r = socket_set_option($s, $level, IP_MULTICAST_IF, 0);
43 $r = socket_set_option($s, $level, IP_MULTICAST_IF, 1);
H A Dmcast_ipv6_send.phpt13 if (socket_set_option($s, $level, IPV6_MULTICAST_IF, 1) === false) {
24 $r = socket_set_option($s, $level, IPV6_MULTICAST_HOPS, 9);
31 $r = socket_set_option($s, $level, IPV6_MULTICAST_LOOP, 0);
35 $r = socket_set_option($s, $level, IPV6_MULTICAST_LOOP, 1);
43 $r = socket_set_option($s, $level, IPV6_MULTICAST_IF, 0);
48 $r = socket_set_option($s, $level, IPV6_MULTICAST_IF, 1);
H A Dsocket_set_option_rcvtimeo.phpt2 Test if socket_set_option() works, option:SO_RCVTIMEO
18 $retval_1 = socket_set_option($socket, SOL_SOCKET, SO_RCVTIMEO, []);
25 $retval_2 = socket_set_option( $socket, SOL_SOCKET, SO_RCVTIMEO, $options);
33 socket_set_option(): Argument #4 ($value) must have key "sec"
H A Dsocket_set_option_sndtimeo.phpt2 Test if socket_set_option() works, option:SO_SNDTIMEO
18 $retval_1 = socket_set_option( $socket, SOL_SOCKET, SO_SNDTIMEO, []);
25 $retval_2 = socket_set_option( $socket, SOL_SOCKET, SO_SNDTIMEO, $options);
33 socket_set_option(): Argument #4 ($value) must have key "sec"
H A Dmcast_ipv4_send_error.phpt14 if (socket_set_option($s, $level, IP_MULTICAST_IF, 1) === false) {
25 $r = socket_set_option($s, $level, IP_MULTICAST_LOOP, 256);
33 $r = socket_set_option($s, $level, IP_MULTICAST_LOOP, false);
42 $r = socket_set_option($s, $level, IP_MULTICAST_TTL, 256);
52 $r = socket_set_option($s, $level, IP_MULTICAST_TTL, "254");
61 $r = socket_set_option($s, $level, IP_MULTICAST_TTL, -1);
80 socket_set_option(): Argument #4 ($value) must be between 0 and 255
88 socket_set_option(): Argument #4 ($value) must be between 0 and 255
H A Dsocket_set_option_acf.phpt2 Test if socket_set_option() works, option:SO_ACCEPTFILTER
23 var_dump(socket_set_option( $socket, SOL_SOCKET, SO_ACCEPTFILTER, 1));
28 var_dump(socket_set_option( $socket, SOL_SOCKET, SO_ACCEPTFILTER, "httpready"));
33 Warning: socket_set_option(): Invalid filter argument type in %s on line %d
H A Dsocket_getopt.phpt14 $r = socket_set_option($s, $level, IP_MULTICAST_TTL, 9);
21 $r = socket_set_option($s, $level, IP_MULTICAST_LOOP, 0);
25 $r = socket_set_option($s, $level, IP_MULTICAST_LOOP, 1);
33 $r = socket_set_option($s, $level, IP_MULTICAST_IF, 0);
38 $r = socket_set_option($s, $level, IP_MULTICAST_IF, 1);
H A Dsocket_set_option_bindtodevice.phpt2 Test if socket_set_option() works, option:SO_BINDTODEVICE
26 $retval_1 = socket_set_option( $socket, SOL_SOCKET, SO_BINDTODEVICE, "lo");
28 $retval_2 = socket_set_option( $socket, SOL_SOCKET, SO_BINDTODEVICE, "ethIDONOTEXIST");
36 Warning: socket_set_option(): Unable to set socket option [19]: No such device in %s on line %d
H A Dsocket_set_option_in6_pktinfo.phpt2 socket_set_option() with IPV6_PKTINFO
24 var_dump(socket_set_option($s, IPPROTO_IPV6, IPV6_PKTINFO, []));
25 var_dump(socket_set_option($s, IPPROTO_IPV6, IPV6_PKTINFO, [
36 Warning: socket_set_option(): error converting user data (path: in6_pktinfo): The key 'addr' is req…
H A Dmcast_ipv6_recv.phpt20 $so = @socket_set_option($s, IPPROTO_IPV6, MCAST_JOIN_GROUP, array(
35 $so = @socket_set_option($s, IPPROTO_IPV6, MCAST_LEAVE_GROUP, array(
39 $so = @socket_set_option($s, IPPROTO_IPV6, MCAST_JOIN_SOURCE_GROUP, array(
67 $so = socket_set_option($s, $level, MCAST_JOIN_GROUP, array(
91 $so = socket_set_option($s, $level, MCAST_LEAVE_GROUP, array(
103 $so = socket_set_option($s, $level, MCAST_JOIN_GROUP, array(
113 $so = socket_set_option($s, $level, MCAST_BLOCK_SOURCE, array(
126 $so = socket_set_option($s, $level, MCAST_UNBLOCK_SOURCE, array(
137 $so = socket_set_option($s, $level, MCAST_LEAVE_GROUP, array(
149 $so = socket_set_option($s, $level, MCAST_JOIN_SOURCE_GROUP, array(
[all …]
H A Dmcast_ipv4_recv.phpt11 $so = @socket_set_option($s, IPPROTO_IP, MCAST_JOIN_GROUP, array(
46 $so = socket_set_option($s, $level, MCAST_JOIN_GROUP, array(
63 $so = socket_set_option($s, $level, MCAST_LEAVE_GROUP, array(
75 $so = socket_set_option($s, $level, MCAST_JOIN_GROUP, array(
87 $so = socket_set_option($s, $level, MCAST_BLOCK_SOURCE, array(
100 $so = socket_set_option($s, $level, MCAST_UNBLOCK_SOURCE, array(
111 $so = socket_set_option($s, $level, MCAST_LEAVE_GROUP, array(
123 $so = socket_set_option($s, $level, MCAST_JOIN_SOURCE_GROUP, array(
134 $so = socket_set_option($s, $level, MCAST_LEAVE_SOURCE_GROUP, array(
147 $so = socket_set_option($s, $level, MCAST_JOIN_GROUP, array(
H A Dsocket_set_option_error_socket_option.phpt2 Test if socket_set_option() returns 'Unable to set socket option' failure for invalid options
27 socket_set_option( $socket, SOL_SOCKET, 1, 1);
31 Warning: socket_set_option(): Unable to set socket option [%d]: Permission denied in %s on line %d
H A Dmcast_ipv6_recv_limited.phpt16 $so = @socket_set_option($s, IPPROTO_IPV6, MCAST_JOIN_GROUP, array(
27 $so = @socket_set_option($s, IPPROTO_IPV6, MCAST_LEAVE_GROUP, array(
32 $so = @socket_set_option($s, IPPROTO_IPV6, MCAST_JOIN_SOURCE_GROUP, array(
60 $so = socket_set_option($s, $level, MCAST_JOIN_GROUP, array(
84 $so = socket_set_option($s, $level, MCAST_LEAVE_GROUP, array(
96 $so = socket_set_option($s, $level, MCAST_JOIN_GROUP, array(
H A Dsocket_clear_error.phpt17 socket_set_option($socket, -1, -1, -1);
23 Warning: socket_set_option(): Unable to set socket option [%s]: %s in %s on line %d
H A Dsocket_defer_acp.phpt2 Test if socket_set_option() works, option:TCP_DEFER_ACCEPT
21 var_dump(socket_set_option( $socket, SOL_TCP, TCP_DEFER_ACCEPT, $initial_val));
H A Dsocket_export_stream-3.phpt10 $so = @socket_set_option($s, IPPROTO_IP, MCAST_JOIN_GROUP, array(
24 $so = socket_set_option($sock, IPPROTO_IP, MCAST_JOIN_GROUP, array(
H A Dsocket_import_stream-3.phpt12 $so = @socket_set_option($s, IPPROTO_IP, MCAST_JOIN_GROUP, array(
24 $so = socket_set_option($sock, IPPROTO_IP, MCAST_JOIN_GROUP, array(
H A Dbug49341.phpt2 Bug #49341: add SO_REUSEPORT support for socket_set_option()
H A Dbug63000.phpt16 $so = socket_set_option($socket, IPPROTO_IP, MCAST_JOIN_GROUP, array(
H A Dsocket_sendrecvmsg_multi_msg-unix.phpt39 socket_set_option($s, IPPROTO_IPV6, IPV6_RECVPKTINFO, 1) or die("err");
40 socket_set_option($s, IPPROTO_IPV6, IPV6_RECVTCLASS, 1) or die("err");
H A Dsocket_sendrecvmsg_multi_msg.phpt34 socket_set_option($s, IPPROTO_IPV6, IPV6_RECVPKTINFO, 1) or die("err");
35 socket_set_option($s, IPPROTO_IPV6, IPV6_RECVTCLASS, 1) or die("err");
H A Dsocket_tcp_congestion.phpt22 var_dump(socket_set_option($socket, SOL_TCP, TCP_CONGESTION, $algo));
H A Dsocket_sendto_zerocopy.phpt28 if (!socket_set_option($socket, SOL_SOCKET, SO_ZEROCOPY, 1)) {
/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));

Completed in 67 milliseconds

12