Esempio n. 1
0
 private static function processServer(Dog_Server $server)
 {
     self::$LAST_SERVER = $server;
     if (!$server->isConnected()) {
         $server->connect();
         return;
     }
     $server->sendQueue();
     while (false !== ($message = $server->getMessage())) {
         // 			echo 'Rec: '.$message.PHP_EOL;
         self::processMessage($server, rtrim($message, "\r\n"));
     }
 }