Abstract away Socket.Read

pull/56/head
xPaw 10 years ago
parent 45f5f422b4
commit 0e55dddae8

@ -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 )
{

Loading…
Cancel
Save