mirror of
https://github.com/xPaw/PHP-Source-Query.git
synced 2026-05-18 16:03:34 +02:00
Updated readme
This commit is contained in:
@@ -62,19 +62,12 @@ class SourceQuery
|
||||
$this->Disconnect( );
|
||||
}
|
||||
|
||||
public function Connect( $Ip, $Port, $Timeout = 3, $Engine = -1 )
|
||||
public function Connect( $Ip, $Port, $Timeout = 3, $Engine = self :: SOURCE )
|
||||
{
|
||||
$this->Disconnect( );
|
||||
$this->Buffer->Reset( );
|
||||
$this->Challenge = 0;
|
||||
|
||||
if( $Engine == -1 )
|
||||
{
|
||||
$Engine = self :: SOURCE;
|
||||
|
||||
Trigger_Error( 'You should pass $Engine variable to Connect(), defaulting to Source.' );
|
||||
}
|
||||
|
||||
if( !$this->Socket->Open( $Ip, (int)$Port, (int)$Timeout, (int)$Engine ) )
|
||||
{
|
||||
throw new SourceQueryException( 'Can\'t connect to the server.' );
|
||||
|
||||
Reference in New Issue
Block a user