コード例 #1
0
 public static function run($pami_client)
 {
     if (!self::$is_running) {
         self::$is_running = true;
         self::$clock = new JAXLClock();
         while (self::$active_read_fds + self::$active_write_fds > 0) {
             self::select();
             if ($pami_client != null) {
                 $pami_client->process();
             }
         }
         _debug("no more active fd's to select");
     }
 }
コード例 #2
0
 public static function run($min_read = 0, $min_write = 0)
 {
     if (!self::$is_running) {
         self::$is_running = true;
         self::$clock = new JAXLClock();
         while (self::$active_read_fds >= $min_read && self::$active_write_fds >= $min_write) {
             self::select();
         }
         _debug("no more active fd's to select");
         self::$is_running = false;
     }
 }
コード例 #3
0
ファイル: jaxl_loop.php プロジェクト: jaxl/JAXL
 public static function run()
 {
     if (!self::$is_running) {
         self::$is_running = true;
         self::$clock = new JAXLClock();
         while (self::$active_read_fds + self::$active_write_fds > 0) {
             self::select();
         }
         JAXLLogger::debug("no more active fd's to select");
         self::$is_running = false;
     }
 }