StackableArrays class

This commit is contained in:
Shoghi Cervantes Pueyo 2013-04-25 20:29:45 +02:00
parent 6a4010a9af
commit c4ff8921f1
2 changed files with 6 additions and 4 deletions

View File

@ -31,14 +31,11 @@ Source: http://wiki.unrealadmin.org/UT3_query_protocol
*/ */
class Query{ class Query{
private $socket, $workers, $threads, $server, $lastToken, $token, $longData, $timeout; private $socket, $server, $lastToken, $token, $longData, $timeout;
public function __construct(){ public function __construct(){
$this->workers = array();
$this->password = (string) $password; $this->password = (string) $password;
console("[INFO] Starting GS4 status listener"); console("[INFO] Starting GS4 status listener");
$this->threads = (int) max(1, $threads);
$this->clientsPerThread = (int) max(1, $clientsPerThread);
$this->server = ServerAPI::request(); $this->server = ServerAPI::request();
$addr = $this->server->api->getProperty("server-ip", "0.0.0.0"); $addr = $this->server->api->getProperty("server-ip", "0.0.0.0");
$port = $this->server->api->getProperty("server-port"); $port = $this->server->api->getProperty("server-port");

View File

@ -25,6 +25,11 @@ the Free Software Foundation, either version 3 of the License, or
*/ */
class StackableArray{
public $counter = 0;
public function run(){}
}
class Async extends Thread { class Async extends Thread {
public function __construct($method, $params = array()){ public function __construct($method, $params = array()){
$this->method = $method; $this->method = $method;