From b9ff6e8b0e1c6317d46b781ca35cfefaa2466b2d Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Thu, 4 Oct 2012 08:03:13 +0200 Subject: [PATCH] stream_ping functionalities added to stream_keepalive function --- web/Obj/sac-a-push.phh | 10 ++++++++-- web/Obj/user.phh | 23 +++++++---------------- 2 files changed, 15 insertions(+), 18 deletions(-) diff --git a/web/Obj/sac-a-push.phh b/web/Obj/sac-a-push.phh index 70ae6bf..54929fa 100644 --- a/web/Obj/sac-a-push.phh +++ b/web/Obj/sac-a-push.phh @@ -403,6 +403,12 @@ class Sac_a_push { } } + /* + $response: raw stream data not sent + $content: html consistent data (", $this->rd_scristp++)); +", $this->rd_scristp++, ($with_ping ? "\"act_ping();\"" : "null"))); } -function stream_ping() +static function base_get() { - return (sprintf("", $this->rd_scristp++)); - + $c = get_called_class(); + printf("CALLED_CLASS: [%s]\n", $c); + return $c::BASE; } - static function base_get() - { - $c = get_called_class(); - printf("CALLED_CLASS: [%s]\n", $c); - return $c::BASE; - } - } // end class User -- 2.17.1