Improved manager

This commit is contained in:
Shoghi Cervantes
2015-04-18 22:33:50 +02:00
parent 11ecaaa87f
commit 61828baa8f
5 changed files with 12 additions and 12 deletions

View File

@ -246,7 +246,7 @@ class RakLibInterface implements ServerInstance, AdvancedSourceInterface{
return null;
}
private function &getPacket(&$buffer){
private function getPacket(&$buffer){
$pid = ord($buffer{0});
if(($data = $this->network->getPacket($pid)) === null){

View File

@ -58,7 +58,7 @@ abstract class DataPacket extends \stdClass{
}
public function setBuffer($buffer = ""){
$this->buffer = $buffer;
$this->buffer =& $buffer;
$this->offset = 0;
}
@ -66,7 +66,7 @@ abstract class DataPacket extends \stdClass{
return $this->offset;
}
public function getBuffer(){
public function &getBuffer(){
return $this->buffer;
}