Home
last modified time | relevance | path

Searched refs:server (Results 1 – 25 of 665) sorted by relevance

12345678910>>...27

/PHP-8.3/ext/standard/tests/file/
H A Dfread_socket_variation1.phpt2 Testing fread() on a TCP server socket
8 /* Setup socket server */
9 $server = @stream_socket_server("tcp://127.0.0.1:$port");
10 if ($server) {
15 socket_set_timeout($server, 0, 1000);
17 var_dump(fread($server, 1));
19 fclose($server);
H A Dfgets_socket_variation1.phpt10 /* Setup socket server */
11 $server = @stream_socket_server("tcp://127.0.0.1:$port");
12 if ($server) {
25 $socket = stream_socket_accept($server);
37 echo "\n\nClose the server side socket and read the remaining data from the client\n";
39 fclose($server);
61 Close the server side socket and read the remaining data from the client
H A Dfgets_socket_variation2.phpt21 /* Setup socket server */
22 $server = @stream_socket_server("tcp://127.0.0.1:$port");
23 if ($server) {
36 $socket = stream_socket_accept($server);
53 echo "\nClose the server side socket and read the remaining data from the client\n";
54 fclose($server);
68 Close the server side socket and read the remaining data from the client
/PHP-8.3/ext/sockets/tests/
H A Dipv4loop.phpt7 /* Setup socket server */
8 $server = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
9 if (!$server) {
10 die('Unable to create AF_INET socket [server]');
13 if (!socket_bind($server, '127.0.0.1', 0)) {
17 if (!socket_listen($server, 2)) {
21 socket_getsockname($server, $unused, $port);
29 die('Unable to connect to server socket');
33 $socket = socket_accept($server);
45 socket_close($server);
H A Dipv6loop.phpt12 /* Setup socket server */
13 $server = socket_create(AF_INET6, SOCK_STREAM, SOL_TCP);
14 if (!$server) {
15 die('Unable to create AF_INET6 socket [server]');
19 if (@socket_bind($server, '::1', $port)) {
27 if (!socket_listen($server, 2)) {
37 die('Unable to connect to server socket');
41 $socket = socket_accept($server);
53 socket_close($server);
H A Dunixloop.phpt19 /* Setup socket server */
20 $server = socket_create(AF_UNIX, SOCK_STREAM, 0);
21 if (!$server) {
22 die('Unable to create AF_UNIX socket [server]');
24 if (!socket_bind($server, $sock_path)) {
27 if (!socket_listen($server, 2)) {
37 die('Unable to connect to server socket');
41 $socket = socket_accept($server);
53 socket_close($server);
H A Dsocket_meminfo.phpt11 $server = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
12 if (!$server) {
13 die('Unable to create AF_INET socket [server]');
16 if (!socket_bind($server, '127.0.0.1', 0)) {
20 if (!socket_listen($server, 2)) {
24 socket_getsockname($server, $unused, $port);
32 die('Unable to connect to server socket');
36 $socket = socket_accept($server);
49 socket_close($server);
H A Dsocket_getpeername_ipv4loop.phpt13 /* Setup socket server */
14 $server = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
15 if (!$server) {
16 die('Unable to create AF_INET socket [server]');
23 if (@socket_bind($server, $localhost, $port)) {
31 if (!socket_listen($server, 2)) {
41 die('Unable to connect to server socket');
45 $socket = socket_accept($server);
57 socket_close($server);
H A Dsocket_getpeername_ipv6loop.phpt18 /* Setup socket server */
19 $server = socket_create(AF_INET6, SOCK_STREAM, SOL_TCP);
20 if (!$server) {
21 die('Unable to create AF_INET6 socket [server]');
28 if (@socket_bind($server, $localhost, $port)) {
36 if (!socket_listen($server, 2)) {
46 die('Unable to connect to server socket');
50 $socket = socket_accept($server);
62 socket_close($server);
/PHP-8.3/ext/standard/tests/streams/
H A Dbug74090.phpt11 $server = false;
12 while(!$server && $port < 20000){
14 $server = stream_socket_server("udp://localhost:$port", $errno, $errstr, STREAM_SERVER_BIND);
16 if(!$server){
18 die("Cannot create server socket");
24 $read = array($server);
28 stream_socket_recvfrom($server, 1, 0, $peer);
29 stream_socket_sendto($server, $data, 0, $peer);
35 stream_socket_shutdown($server, STREAM_SHUT_RDWR);
H A Dstream_context_tcp_nodelay_server.phpt2 stream context tcp_nodelay server
14 $server = stream_socket_server(
17 $client = stream_socket_accept($server);
20 socket_import_stream($server),
28 fclose($server);
H A Dbug76136.phpt12 $server = stream_socket_server("tcp://[::1]:1337/");
13 echo stream_socket_get_name($server, false).PHP_EOL;
14 $server = stream_socket_server("tcp://127.0.0.1:1337/");
15 echo stream_socket_get_name($server, false);
/PHP-8.3/ext/standard/tests/network/
H A Dudp4loop.phpt5 /* Setup socket server */
8 $server = @stream_socket_server($uri, $errno, $errstr, STREAM_SERVER_BIND);
9 if ($server) break;
11 if (!$server) {
12 die('Unable to create AF_INET socket [server]: ' . $errstr);
23 $data = fread($server, 10);
27 fclose($server);
H A Dtcp4loop.phpt8 /* Setup socket server */
9 $server = @stream_socket_server("tcp://127.0.0.1:$port");
10 if ($server) {
14 if (!$server) {
15 die('Unable to create AF_INET socket [server]');
25 $socket = stream_socket_accept($server);
37 fclose($server);
H A Dsocket_get_status_basic.phpt8 /* Setup socket server */
9 $server = @stream_socket_server("tcp://127.0.0.1:$port");
10 if ($server) {
15 var_dump(socket_get_status($server));
16 fclose($server);
H A Dudgloop.phpt14 /* Setup socket server */
15 $server = stream_socket_server("udg:///tmp/$uniqid.sock", $errno, $errstr, STREAM_SERVER_BIND);
16 if (!$server) {
17 die('Unable to create AF_UNIX socket [server]');
28 $data = fread($server, 10);
32 fclose($server);
H A Dshutdown.phpt12 /* Setup socket server */
13 $server = @stream_socket_server("tcp://127.0.0.1:$port");
14 if ($server) {
19 if (!$server) {
20 die('Unable to create AF_INET socket [server]');
42 $socket = stream_socket_accept($server);
55 $socket = stream_socket_accept($server);
69 fclose($server);
H A Dunixloop.phpt14 /* Setup socket server */
15 $server = stream_socket_server("unix:///tmp/$uniqid.sock");
16 if (!$server) {
17 die('Unable to create AF_UNIX socket [server]');
27 $socket = stream_socket_accept($server);
39 fclose($server);
H A Dudp6loop.phpt24 /* Setup socket server */
25 $server = @stream_socket_server("udp://[::1]:$port", $errno, $errstr, STREAM_SERVER_BIND);
26 if ($server) {
31 if (!$server) {
32 die('Unable to create AF_INET6 socket [server]');
43 $data = fread($server, 10);
47 fclose($server);
H A Dtcp6loop.phpt18 /* Setup socket server */
19 $server = @stream_socket_server("tcp://[::1]:$port");
20 if ($server) {
25 if (!$server) {
26 die('Unable to create AF_INET6 socket [server]');
36 $socket = stream_socket_accept($server);
48 fclose($server);
/PHP-8.3/ext/standard/tests/http/
H A Dserver.inc13 $server = stream_socket_server('tcp://localhost:0', $errno, $errstr);
14 if (!$server) {
35 return $server;
38 /* Minimal HTTP server with predefined responses.
47 if (!is_resource($server = http_server_init($output))) {
48 return $server;
52 $files = $files($server);
57 $sock = stream_socket_accept($server);
105 if (!is_resource($server = http_server_init($output))) {
106 return $server;
[all …]
/PHP-8.3/ext/pdo_mysql/
H A Dmysql_driver.c63 einfo->errcode = mysql_errno(H->server); in _pdo_mysql_error()
76 if (mysql_more_results(H->server)) { in _pdo_mysql_error()
155 if (H->server) { in mysql_handle_closer()
156 mysql_close(H->server); in mysql_handle_closer()
157 H->server = NULL; in mysql_handle_closer()
220 if (mysql_errno(H->server) == 1295) { in mysql_handle_preparer()
278 if (mysql_next_result(H->server)) { in mysql_handle_doer()
595 if (mysql_ping(H->server)) {
610 if (H->server) {
611 mysqlnd_end_psession(H->server);
[all …]
/PHP-8.3/ext/pdo_pgsql/
H A Dpgsql_driver.c194 self->conn = H->server; in pdo_pgsql_create_lob_stream()
232 if (H->server) { in pgsql_handle_closer()
233 PQfinish(H->server); in pgsql_handle_closer()
234 H->server = NULL; in pgsql_handle_closer()
464 switch (PQstatus(H->server)) { in pdo_pgsql_get_attribute()
545 if (!PQconsumeInput(H->server) || PQstatus(H->server) == CONNECTION_BAD) { in pdo_pgsql_check_liveness()
546 PQreset(H->server); in pdo_pgsql_check_liveness()
565 res = PQexec(H->server, cmd); in pdo_pgsql_transaction_cmd()
1140 if (!PQconsumeInput(H->server)) { in PHP_METHOD()
1150 if (!PQconsumeInput(H->server)) { in PHP_METHOD()
[all …]
/PHP-8.3/ext/soap/tests/interop/Round3/GroupD/
H A Dround3_groupD_compound2.inc9 $server = new SoapServer(dirname(__FILE__)."/round3_groupD_compound2.wsdl");
10 $server->setClass("SOAP_Interop_GroupD");
11 $server->handle($HTTP_RAW_POST_DATA);
H A Dround3_groupD_emptysa.inc11 $server = new SoapServer(dirname(__FILE__)."/round3_groupD_emptysa.wsdl");
12 $server->setClass("SOAP_Interop_GroupD");
13 $server->handle($HTTP_RAW_POST_DATA);

Completed in 29 milliseconds

12345678910>>...27