Home
last modified time | relevance | path

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

12345

/PHP-7.0/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], b"line start");
28 fwrite($sockets[0], b", line end");
29 fwrite($sockets[0], b", $eol");
34 fwrite($sockets[0], b"incomplete line");
41 fwrite($sockets[0], b"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], b"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], b"foo");
9 var_dump(fread($sockets[1], strlen(b"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], b"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];
/PHP-7.0/ext/sockets/
H A Dconfig.w324 ARG_ENABLE("sockets", "SOCKETS support", "no");
7 if (CHECK_LIB("ws2_32.lib", "sockets", PHP_SOCKETS)
8 && CHECK_LIB("Iphlpapi.lib", "sockets", PHP_SOCKETS)
10 …EXTENSION('sockets', 'sockets.c multicast.c conversions.c sockaddr_conv.c sendrecvmsg.c', PHP_SOCK…
12 PHP_INSTALL_HEADERS("ext/sockets", "php_sockets.h windows_common.h");
14 WARNING("sockets not enabled; libraries and headers not found");
H A Dconfig.m45 PHP_ARG_ENABLE(sockets, whether to enable sockets support,
6 [ --enable-sockets Enable sockets support])
59 …PHP_NEW_EXTENSION([sockets], [sockets.c multicast.c conversions.c sockaddr_conv.c sendrecvmsg.c], …
60 PHP_INSTALL_HEADERS([ext/sockets/], [php_sockets.h])
H A Dphp_sockets.h90 ZEND_BEGIN_MODULE_GLOBALS(sockets)
93 ZEND_END_MODULE_GLOBALS(sockets)
95 ZEND_EXTERN_MODULE_GLOBALS(sockets)
96 #define SOCKETS_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sockets, v)
/PHP-7.0/ext/sockets/tests/
H A Dsocket_create_pair.phpt5 if (!extension_loaded('sockets')) {
6 die('SKIP The sockets extension is not loaded.');
10 $sockets = array();
16 socket_create_pair($domain, SOCK_STREAM, 0, $sockets);
17 var_dump($sockets);
H A Dsocket_select.phpt5 if (!extension_loaded('sockets')) {
6 die('SKIP The sockets extension is not loaded.');
10 $sockets = array();
16 socket_create_pair($domain, SOCK_STREAM, 0, $sockets);
20 var_dump(socket_select($sockets, $write, $except, 0));
H A Dsocket_select-wrongparams-1-win32.phpt8 if (!extension_loaded('sockets')) {
9 die('SKIP The sockets extension is not loaded.');
13 $sockets = array();
15 socket_create_pair($domain, SOCK_STREAM, 0, $sockets);
20 var_dump(socket_select($sockets, $write, $except, $time));
H A Dsocket_select-wrongparams-4.phpt7 if (!extension_loaded('sockets')) {
8 die('SKIP The sockets extension is not loaded.');
12 $sockets = array();
18 socket_create_pair($domain, SOCK_STREAM, 0, $sockets);
24 var_dump(socket_select($sockets, $write, $except, $time, $usec));
H A Dsocket_select-wrongparams-3.phpt7 if (!extension_loaded('sockets')) {
8 die('SKIP The sockets extension is not loaded.');
12 $sockets = array();
18 socket_create_pair($domain, SOCK_STREAM, 0, $sockets);
23 var_dump(socket_select($sockets, $write, $except, $time));
H A Dsocket_select-wrongparams-1.phpt8 if (!extension_loaded('sockets')) {
9 die('SKIP The sockets extension is not loaded.');
13 $sockets = array();
15 socket_create_pair($domain, SOCK_STREAM, 0, $sockets);
20 var_dump(socket_select($sockets, $write, $except, $time));
H A Dsocket_select-wrongparams-2.phpt5 if (!extension_loaded('sockets')) {
6 die('SKIP The sockets extension is not loaded.');
10 $sockets = null;
14 var_dump(socket_select($sockets, $write, $except, $time));
15 socket_select($sockets, $write, $except);
H A Dsocket_create_pair-wrongparams-win32.phpt8 if (!extension_loaded('sockets')) {
9 die('SKIP The sockets extension is not loaded.');
16 var_dump(socket_create_pair($domain, SOCK_STREAM, 0, $sockets));
18 var_dump(socket_create_pair(AF_INET, null, null, $sockets));
20 var_dump(socket_create_pair(31337, null, null, $sockets));
22 var_dump(socket_create_pair(AF_INET, 31337, 0, $sockets));
H A Dsocket_create_pair-wrongparams.phpt8 if (!extension_loaded('sockets')) {
9 die('SKIP The sockets extension is not loaded.');
16 var_dump(socket_create_pair($domain, SOCK_STREAM, 0, $sockets));
18 var_dump(socket_create_pair(AF_INET, null, null, $sockets));
20 var_dump(socket_create_pair(31337, null, null, $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
8 if (!extension_loaded('sockets')) {
9 die('skip sockets extension not available.');
H A Dsocket_close_params.phpt2 ext/sockets - socket_close - test with empty parameters
8 if (!extension_loaded('sockets')) {
9 die('skip - sockets extension not available.');
H A Dsocket_listen_params.phpt2 ext/sockets - socket_listen - test with empty parameters
8 if (!extension_loaded('sockets')) {
9 die('skip sockets extension not available.');
H A Dsocket_create_listen_params.phpt2 ext/sockets - socket_create_listen - test for empty parameters
8 if (!extension_loaded('sockets')) {
9 die('skip - sockets extension not available.');
H A Dbug51958.phpt2 Bug #51958: socket_accept() fails on IPv6 server sockets
5 if (!extension_loaded('sockets')) {
6 die('skip sockets extension not available.');
H A Dsocket_getsockname.phpt2 ext/sockets - socket_getsockname - basic test
8 if (!extension_loaded('sockets')) {
9 die('skip sockets extension not available.');
H A Dsocket_bind_params.phpt2 ext/sockets - socket_bind - test with empty parameters
8 if (!extension_loaded('sockets')) {
9 die('skip - sockets extension not available.');
/PHP-7.0/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 18 milliseconds

12345