From: Matteo Nastasi (mop) Date: Wed, 18 Apr 2012 06:22:09 +0000 (+0200) Subject: add session management and step passed to the streamer X-Git-Url: https://mop.ddnsfree.com/gitweb/?p=xynt.git;a=commitdiff_plain;h=f204bcec7746f916c356f31dbe814a865c37dd0d add session management and step passed to the streamer --- diff --git a/web/test-commons.php b/web/test-commons.php new file mode 100644 index 0000000..7cb325a --- /dev/null +++ b/web/test-commons.php @@ -0,0 +1,73 @@ + + + + + + + +
+ + + \ No newline at end of file diff --git a/web/test-hs-rd.php b/web/test-hs-rd.php index 4f13f24..d9a0867 100644 --- a/web/test-hs-rd.php +++ b/web/test-hs-rd.php @@ -4,7 +4,6 @@ @@ -20,24 +19,28 @@ function mop_flush() function main() { + GLOBAL $st; + $s = ""; for ($i = 0 ; $i < 4096 ; $i++) { $s .= rand(65,90); } - for ($i = 0 ; $i < 15 ; $i++) { + + $to = rand(10,20); + for ($first = true, $i = $st+1 ; $i < $st+$to ; $i++, $first = false) { // if ($i == 0) // sleep(1); if ($i != 8 || true) { printf("", $i, ($i == 0 ? "
" : ""), $i); +push(\"$('cont').innerHTML += '%s %d'; gst.st = %d;\"); +", $i, ($first ? "
" : ""), $i, $i); } else { // exit(); // sleep(30); } - if ($i == 0) + if ($first) printf("", $s); mop_flush(); usleep(1000000); diff --git a/web/test-hs.php b/web/test-hs.php index 3ffd263..c09c75c 100644 --- a/web/test-hs.php +++ b/web/test-hs.php @@ -4,14 +4,25 @@