1
0
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:
xPaw
2012-04-06 18:19:38 +03:00
parent 53cae06b12
commit e5e7e3fde5
2 changed files with 71 additions and 24 deletions
+1 -8
View File
@@ -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.' );