mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-30 11:19:21 +02:00
Remove whitespaces
This commit is contained in:
parent
a8a2c72381
commit
ac3a6c36d5
@ -14,7 +14,7 @@
|
||||
|
||||
/**
|
||||
* Various server status querying methods.
|
||||
*
|
||||
*
|
||||
* @package POT
|
||||
* @property-read OTS_InfoRespond|bool $status status() method wrapper.
|
||||
* @property-read OTS_ServerStatus|bool $info Full info() method wrapper.
|
||||
@ -23,21 +23,21 @@ class OTS_ServerInfo
|
||||
{
|
||||
/**
|
||||
* Server address.
|
||||
*
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private $server;
|
||||
|
||||
/**
|
||||
* Connection port.
|
||||
*
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
private $port;
|
||||
|
||||
/**
|
||||
* Creates handler for new server.
|
||||
*
|
||||
*
|
||||
* @param string $server Server IP/domain.
|
||||
* @param int $port OTServ port.
|
||||
*/
|
||||
@ -49,7 +49,7 @@ class OTS_ServerInfo
|
||||
|
||||
/**
|
||||
* Sends packet to server.
|
||||
*
|
||||
*
|
||||
* @param OTS_Buffer|string $packet Buffer to send.
|
||||
* @return OTS_Buffer|null Respond buffer (null if server is offline).
|
||||
* @throws E_OTS_OutOfBuffer When there is read attemp after end of packet stream.
|
||||
@ -75,7 +75,7 @@ class OTS_ServerInfo
|
||||
|
||||
// reads respond
|
||||
//$data = stream_get_contents($socket);
|
||||
$data = '';
|
||||
$data = '';
|
||||
while (!feof($socket))
|
||||
$data .= fgets($socket, 1024);
|
||||
|
||||
@ -97,11 +97,11 @@ class OTS_ServerInfo
|
||||
|
||||
/**
|
||||
* Queries server status.
|
||||
*
|
||||
*
|
||||
* <p>
|
||||
* Sends 'info' packet to OTS server and return output. Returns {@link OTS_InfoRespond OTS_InfoRespond} (wrapper for XML data) with results or <var>false</var> if server is online.
|
||||
* </p>
|
||||
*
|
||||
*
|
||||
* @return OTS_InfoRespond|bool Respond content document (false when server is offline).
|
||||
* @throws DOMException On DOM operation error.
|
||||
* @throws E_OTS_OutOfBuffer When there is read attemp after end of packet stream.
|
||||
@ -135,11 +135,11 @@ class OTS_ServerInfo
|
||||
|
||||
/**
|
||||
* Queries server information.
|
||||
*
|
||||
*
|
||||
* <p>
|
||||
* This method uses binary info protocol. It provides more infromation then {@link OTS_Toolbox::serverStatus() XML way}.
|
||||
* </p>
|
||||
*
|
||||
*
|
||||
* @param int $flags Requested info flags.
|
||||
* @return OTS_ServerStatus|bool Respond content document (false when server is offline).
|
||||
* @throws E_OTS_OutOfBuffer When there is read attemp after end of packet stream.
|
||||
@ -169,11 +169,11 @@ class OTS_ServerInfo
|
||||
|
||||
/**
|
||||
* Checks player online status.
|
||||
*
|
||||
*
|
||||
* <p>
|
||||
* This method uses binary info protocol.
|
||||
* </p>
|
||||
*
|
||||
*
|
||||
* @param string $name Player name.
|
||||
* @return bool True if player is online, false if player or server is online.
|
||||
* @throws E_OTS_OutOfBuffer When there is read attemp after end of packet stream.
|
||||
@ -204,7 +204,7 @@ class OTS_ServerInfo
|
||||
|
||||
/**
|
||||
* Magic PHP5 method.
|
||||
*
|
||||
*
|
||||
* @param string $name Property name.
|
||||
* @param mixed $value Property value.
|
||||
* @throws OutOfBoundsException For non-supported properties.
|
||||
|
Loading…
x
Reference in New Issue
Block a user