예제 #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;
     }
 }