Long polling tecnique with Output control functions (ob_*)