public function encode() { parent::encode(); $this->put(RakLib::MAGIC); $this->putByte($this->protocol); $this->put(str_repeat(chr(0x0), $this->mtuSize - 18)); }