Example #1
0
 function fetchDetails()
 {
     $this->openConnection();
     $serverName = $this->connection->getServerName();
     if ($serverName != $this->name) {
         $service = new ServerService();
         $service->register($this);
         $this->name = $serverName;
     }
     $info = $this->connection->getSystemInfo();
     $this->login = $info->serverLogin;
     $this->titleId = $info->titleId;
     $this->joinIp = $info->publishedIp;
     $this->joinPort = $info->port;
     $this->joinPassword = $this->connection->getServerPassword();
     $this->specPassword = $this->connection->getServerPasswordForSpectator();
     $this->isRelay = $this->connection->isRelayServer();
     $this->connection = $this->connection;
 }