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"); } }
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; } }
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; } }