/**
  * Creates a new master server instance with the given address and port
  *
  * @param string $address Either an IP address, a DNS name or one of them
  *        combined with the port number. If a port number is given, e.g.
  *        'server.example.com:27016' it will override the second argument.
  * @param int $port The port the server is listening on
  * @throws SteamCondenserException if an host name cannot be resolved
  */
 public function __construct($address, $port = null)
 {
     parent::__construct($address, $port);
     if (!isset(self::$log)) {
         self::$log = new \Monolog\Logger('MasterServer');
     }
 }
 /**
  * Creates a new instance of a game server object
  *
  * @param string $address Either an IP address, a DNS name or one of them
  *        combined with the port number. If a port number is given, e.g.
  *        'server.example.com:27016' it will override the second argument.
  * @param int $port The port the server is listening on
  * @throws SteamCondenserException if an host name cannot be resolved
  */
 public function __construct($address, $port = 27015)
 {
     parent::__construct($address, $port);
     $this->rconAuthenticated = false;
 }
示例#3
0
 /**
  * Creates a new instance of a game server object
  *
  * @param string $address Either an IP address, a DNS name or one of them
  *        combined with the port number. If a port number is given, e.g.
  *        'server.example.com:27016' it will override the second argument.
  * @param int $port The port the server is listening on
  * @throws SteamCondenserException if an host name cannot be resolved
  */
 public function __construct($address, $port = 27015)
 {
     parent::__construct($address, $port);
     $this->rconAuthenticated = false;
     if (!isset(self::$log)) {
         self::$log = new \Monolog\Logger('GameServer');
     }
 }