Home
last modified time | relevance | path

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

12345678910>>...26

/php-src/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-src/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-src/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-src/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 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);
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);
/php-src/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-src/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()
610 if (mysql_ping(H->server)) {
625 if (H->server) {
626 mysqlnd_end_psession(H->server);
[all …]
/php-src/ext/soap/tests/SoapServer/
H A D__getLastResponse.phpt13 public $server;
17 $this->server = new SoapServer($wsdl, $options);
18 $this->server->addFunction("f");
23 $this->server->handle($request);
33 var_dump($client->server->__getLastResponse());
34 var_dump($client->__getLastResponse() === $client->server->__getLastResponse());
40 var_dump($client->server->__getLastResponse());
41 var_dump($client->__getLastResponse() === $client->server->__getLastResponse());
47 echo $client->server->__getLastResponse(), "\n";
48 var_dump($client->__getLastResponse() === $client->server->__getLastResponse());
/php-src/ext/pdo_pgsql/
H A Dpgsql_driver.c212 self->conn = H->server; in pdo_pgsql_create_lob_stream()
251 if (H->server) { in pgsql_handle_closer()
252 PQfinish(H->server); in pgsql_handle_closer()
253 H->server = NULL; in pgsql_handle_closer()
477 switch (PQstatus(H->server)) { in pdo_pgsql_get_attribute()
531 int spid = PQbackendPID(H->server); in pdo_pgsql_get_attribute()
558 if (!PQconsumeInput(H->server) || PQstatus(H->server) == CONNECTION_BAD) { in pdo_pgsql_check_liveness()
559 PQreset(H->server); in pdo_pgsql_check_liveness()
578 res = PQexec(H->server, cmd); in pdo_pgsql_transaction_cmd()
1216 if (!PQconsumeInput(H->server)) { in pgsqlGetNotify_internal()
[all …]
/php-src/ext/soap/tests/interop/Round3/GroupD/
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 43 milliseconds

12345678910>>...26