@ -40,7 +40,7 @@
abstract public function Write( $Header, $String = '' );
abstract public function Read( $Length = 1400 );
protected function ReadInternal( $Buffer, $SherlockFunction )
protected function ReadInternal( $Buffer, $Length, $SherlockFunction )
{
if( $Buffer->Remaining( ) === 0 )
@ -73,7 +73,7 @@
$Buffer = new Buffer( );
$Buffer->Set( FRead( $this->Socket, $Length ) );
$this->ReadInternal( $Buffer, [ $this, 'Sherlock' ] );
$this->ReadInternal( $Buffer, $Length, [ $this, 'Sherlock' ] );
return $Buffer;
}
$Buffer->Set( $this->PacketQueue->pop() );