BayEOS-PHP
 All Data Structures Namespaces Files Functions Variables Pages
Variables
testServer.php File Reference

Go to the source code of this file.

Variables

 $socket = stream_socket_server("tcp://0.0.0.0:8000", $errno, $errstr)
 
if(!$socket) else
 

Variable Documentation

$socket = stream_socket_server("tcp://0.0.0.0:8000", $errno, $errstr)

Definition at line 2 of file testServer.php.

if (!$socket) else
Initial value:
{
while (TRUE){
if($conn = stream_socket_accept($socket)) {
echo "Got connect\n";
$count=0;
while(fwrite($conn, "1 $count 4\n")){
if(fflush($conn))
echo "Data send\n";;
$count++;
sleep(10);
}
fclose($conn);
}
}
fclose($socket)
$socket
Definition: testServer.php:2
$count
Definition: BayEOSWriter.php:8

Definition at line 5 of file testServer.php.