Exemplo n.º 1
0
 public static function addServer(Dog_Server $server)
 {
     Dog_Log::debug(sprintf('addServer(%d)', $server->getID()));
     $server->setConnectIn(count(self::$SERVERS) * self::CONNECT_WAIT + 1);
     $host = $server->getHost();
     if (!isset(self::$SERVERS[$host])) {
         $server->setupConnection();
         self::$SERVERS[$host] = $server;
         Dog_Log::debug(sprintf('addServer(%d)', $server->getID()));
     }
 }