new server class
This commit is contained in:
@@ -1,5 +1,15 @@
|
||||
<?php
|
||||
function ping($host, $port, $timeout){return fSockOpen($host, $port, $errno, $errstr, $timeout);}
|
||||
|
||||
class Server{
|
||||
public $NAME; public $HOST; public $PORT; public $PING;
|
||||
|
||||
public function __construct($NAME,$HOST,$PORT) {
|
||||
$this->NAME = $NAME; $this->HOST = $HOST; $this->PORT = $PORT; $this->PING = ping($HOST, $PORT, 0.5);
|
||||
}
|
||||
|
||||
function ping($host, $port, $timeout){return fSockOpen($host, $port, $errno, $errstr, $timeout);}
|
||||
}
|
||||
|
||||
class ServerStatus {
|
||||
private $status = array();
|
||||
|
||||
Reference in New Issue
Block a user