예제 #1
0
 /**
  * notice,记录到日志,同时打印到telnet客户端(如果有telnet链接的话)
  * @param string $msg
  * @param bool $display
  */
 protected static function notice($msg, $display = false)
 {
     ServerLog::add("Server notice:" . $msg);
     Telnet::sendToAllClient($msg . "\n");
     if ($display) {
         if (self::$serverStatus == self::STATUS_STARTING) {
             echo $msg . "\n";
         }
     }
 }