Home
last modified time | relevance | path

Searched refs:sockets (Results 1 – 25 of 146) sorted by relevance

123456

/PHP-8.3/ext/standard/tests/streams/
H A Dstream_get_line_nb.phpt7 fclose($sockets[0]);
8 fclose($sockets[1]);
19 var_dump($sockets);
21 stream_set_blocking($sockets[1], 0);
25 fwrite($sockets[0], "line start");
28 fwrite($sockets[0], ", line end");
29 fwrite($sockets[0], ", $eol");
34 fwrite($sockets[0], "incomplete line");
41 fwrite($sockets[0], "end of file");
44 fclose($sockets[0]);
[all …]
H A Dstream_copy_to_stream_socket.phpt5 $sockets = @stream_socket_pair(STREAM_PF_UNIX, STREAM_SOCK_STREAM, 0);
6 if (!$sockets) die("skip stream_socket_pair");
11 $sockets = stream_socket_pair(STREAM_PF_UNIX, STREAM_SOCK_STREAM, 0);
14 fwrite($sockets[0], "a");
15 stream_socket_shutdown($sockets[0], STREAM_SHUT_WR);
16 stream_copy_to_stream($sockets[1], $tmp);
21 stream_copy_to_stream($sockets[1], $tmp);
H A Dstream_socket_pair.phpt6 $sockets = stream_socket_pair($domain, STREAM_SOCK_STREAM, 0);
7 var_dump($sockets);
8 fwrite($sockets[0], "foo");
9 var_dump(fread($sockets[1], strlen("foo")));
10 fclose($sockets[0]);
H A Dstream_get_contents_002.phpt9 $sockets = stream_socket_pair(STREAM_PF_UNIX, STREAM_SOCK_STREAM, 0);
11 stream_set_timeout($sockets[1], 6000);
13 fwrite($sockets[0], "foo");
14 var_dump(stream_get_contents($sockets[1], 3));
H A Dbug60455_01.phpt7 //flag the first time. This is why we need to use sockets.
10 $sockets = stream_socket_pair($domain, STREAM_SOCK_STREAM, STREAM_IPPROTO_IP)
12 fwrite($sockets[0], "a");
13 stream_socket_shutdown($sockets[0], STREAM_SHUT_RDWR);
15 $f = $sockets[1];
H A Deagain_is_not_an_error.phpt10 $sockets = stream_socket_pair(STREAM_PF_UNIX, STREAM_SOCK_STREAM, STREAM_IPPROTO_IP);
11 stream_set_blocking($sockets[0], false);
12 var_dump(fread($sockets[0], 100));
/PHP-8.3/ext/sockets/
H A Dconfig.w323 ARG_ENABLE("sockets", "SOCKETS support", "no");
6 if (CHECK_LIB("ws2_32.lib", "sockets", PHP_SOCKETS)
7 && CHECK_LIB("Iphlpapi.lib", "sockets", PHP_SOCKETS)
9 …EXTENSION('sockets', 'sockets.c multicast.c conversions.c sockaddr_conv.c sendrecvmsg.c', PHP_SOCK…
11 PHP_INSTALL_HEADERS("ext/sockets", "php_sockets.h windows_common.h");
14 WARNING("sockets not enabled; libraries and headers not found");
H A Dconfig.m41 PHP_ARG_ENABLE([sockets],
2 [whether to enable sockets support],
3 [AS_HELP_STRING([--enable-sockets],
4 [Enable sockets support])])
102 [sockets],
103 [sockets.c multicast.c conversions.c sockaddr_conv.c sendrecvmsg.c],
106 PHP_INSTALL_HEADERS([ext/sockets/], [php_sockets.h])
/PHP-8.3/ext/sockets/tests/
H A Dsocket_select.phpt4 sockets
7 $sockets = array();
13 socket_create_pair($domain, SOCK_STREAM, 0, $sockets);
17 $ref =& $sockets[0]; // bug #78038
18 var_dump(socket_select($sockets, $write, $except, 0));
H A Dsocket_create_pair.phpt4 sockets
7 $sockets = array();
13 socket_create_pair($domain, SOCK_STREAM, 0, $sockets);
14 var_dump($sockets);
H A Dsocket_select-wrongparams-4.phpt6 sockets
9 $sockets = array();
15 socket_create_pair($domain, SOCK_STREAM, 0, $sockets);
21 var_dump(socket_select($sockets, $write, $except, $time, $usec));
H A Dsocket_select-wrongparams-1-win32.phpt4 sockets
12 $sockets = array();
14 socket_create_pair($domain, SOCK_STREAM, 0, $sockets);
19 var_dump(socket_select($sockets, $write, $except, $time));
H A Dsocket_select-wrongparams-1.phpt4 sockets
12 $sockets = array();
14 socket_create_pair($domain, SOCK_STREAM, 0, $sockets);
19 var_dump(socket_select($sockets, $write, $except, $time));
H A Dsocket_create_pair-wrongparams-win32.phpt4 sockets
13 var_dump(socket_create_pair(AF_INET, 0, 0, $sockets));
16 var_dump(socket_create_pair(31337, 0, 0, $sockets));
22 var_dump(socket_create_pair(AF_INET, 31337, 0, $sockets));
H A Dsocket_select-wrongparams-2.phpt4 sockets
7 $sockets = null;
13 socket_select($sockets, $write, $except, $time);
H A Dsocket_create_pair-wrongparams.phpt4 sockets
13 var_dump(socket_create_pair(AF_INET, 0, 0, $sockets));
16 var_dump(socket_create_pair(31337, 0, 0, $sockets));
22 var_dump(socket_create_pair(AF_INET, 31337, 0, $sockets));
H A Dsocket_set_nonblock.phpt2 ext/sockets - socket_set_block - basic test
7 sockets
H A Dsocket_read_params.phpt2 ext/sockets - socket_read- test with incorrect parameter
7 sockets
H A Dsocket_send_params.phpt2 ext/sockets - socket_send - test with incorrect parameters
4 sockets
H A Dsocket_sendto_params.phpt2 ext/sockets - socket_sendto - test with incorrect parameters
4 sockets
H A Dsocket_getsockname.phpt2 ext/sockets - socket_getsockname - basic test
7 sockets
H A Dbug80723.phpt2 Bug #80723: Different sockets compare as equal (regression in 8.0)
4 sockets
H A Dsocket_strerror.phpt2 ext/sockets - socket_strerror - basic test
7 sockets
H A Dbug51958.phpt2 Bug #51958: socket_accept() fails on IPv6 server sockets
4 sockets
/PHP-8.3/ext/standard/tests/network/
H A Dfsockopen_variation2.phpt2 testing fsockopen() with udp sockets
16 echo "\nPass some data between the sockets:\n";
26 echo "\nPass some data between the sockets:\n";
40 Pass some data between the sockets:
46 Pass some data between the sockets:

Completed in 35 milliseconds

123456