mirror of
https://github.com/xPaw/PHP-Source-Query.git
synced 2026-05-18 14:33:34 +02:00
Abstract away Socket.Read
This commit is contained in:
@@ -70,7 +70,12 @@
|
||||
|
||||
public function Read( $Length = 1400 )
|
||||
{
|
||||
$this->Buffer->Set( FRead( $this->Socket, $Length ) );
|
||||
$this->ReadBuffer( FRead( $this->Socket, $Length ), $Length );
|
||||
}
|
||||
|
||||
protected function ReadBuffer( $Buffer, $Length )
|
||||
{
|
||||
$this->Buffer->Set( $Buffer );
|
||||
|
||||
if( $this->Buffer->Remaining( ) === 0 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user