Ejemplo n.º 1
0
 /**
  * @param InetAddress $serverIP
  * @param int $portNumber The listening port of the server, defaults to 27015
  */
 public function __construct(InetAddress $ipAddress, $portNumber = 27015)
 {
     parent::__construct($portNumber);
     $this->rconSocket = new RCONSocket($ipAddress, $portNumber);
     $this->socket = new SourceSocket($ipAddress, $portNumber);
 }
 /**
  * @param InetAddress $serverIP
  * @param int $portNumber The listening port of the server, defaults to 27015
  */
 public function __construct(InetAddress $ipAddress, $portNumber = 27015, $isHLTV = false)
 {
     parent::__construct($portNumber);
     $this->socket = new GoldSrcSocket($ipAddress, $portNumber, $isHLTV);
 }
 /**
  * Creates a new instance of a GoldSrc 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
  * @param bool $isHLTV HLTV servers need special treatment, so this is used
  *        to determine if the server is a HLTV server
  * @throws SteamCondenserException if an host name cannot be resolved
  */
 public function __construct($address, $port = 27015, $isHLTV = false)
 {
     parent::__construct($address, $port);
     $this->isHLTV = $isHLTV;
 }