mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-09 13:14:54 +00:00
StackableArrays class
This commit is contained in:
parent
6a4010a9af
commit
c4ff8921f1
@ -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");
|
||||||
|
@ -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;
|
Loading…
x
Reference in New Issue
Block a user