Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

...
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Commits on Apr 17, 2012
Sebastian Staudt Don't reverse lookup server host names
PHP's gethostbyaddr() is slow and the information isn't that valuable.

See koraktor/steam-condenser#154
f1053d5
Sebastian Staudt Fixed warning in MasterServer#getServers() 34d0cc6
9 lib/steam/servers/MasterServer.php
View
@@ -170,10 +170,11 @@ public function getChallenge() {
* master server
*/
public function getServers($regionCode = MasterServer::REGION_ALL , $filter = '', $force = false) {
- $failCount = 0;
- $finished = false;
- $portNumber = 0;
- $hostName = '0.0.0.0';
+ $failCount = 0;
+ $finished = false;
+ $portNumber = 0;
+ $hostName = '0.0.0.0';
+ $serverArray = array();
while(true) {
try {
7 lib/steam/servers/Server.php
View
@@ -21,11 +21,6 @@
abstract class Server {
/**
- * @var array The host names of this server
- */
- protected $hostNames;
-
- /**
* @var array The currently selected IP address of this server
*/
protected $ipAddress;
@@ -63,7 +58,6 @@ public function __construct($address, $port = null) {
$port = $address[1];
$address = $address[0];
}
- $this->hostNames = array();
$this->ipAddresses = array();
$this->ipIndex = 0;
$this->port = intval($port);
@@ -74,7 +68,6 @@ public function __construct($address, $port = null) {
}
foreach($addresses as $address) {
- $this->hostNames[] = gethostbyaddr($address);
$this->ipAddresses[] = $address;
}

No commit comments for this range

Something went wrong with that request. Please try again.