OTS_ServerInfo -> set timeout out of class

Possibility to use the class without MyAAC
This commit is contained in:
slawkens
2025-05-23 16:11:57 +02:00
parent 43153b2b0c
commit 40d65a6613
3 changed files with 17 additions and 4 deletions

View File

@@ -415,9 +415,11 @@ class POT
* @tutorial POT/Server_status.pkg
* @deprecated 0.1.4 Use OTS_ServerInfo->status().
*/
public static function serverStatus($server, $port)
public static function serverStatus($server, $port, $timeout = 2.0)
{
$status = new OTS_ServerInfo($server, $port);
$status->setTimeout($timeout);
return $status->status();
}