public function encode() { parent::encode(); $this->putLong($this->clientID); $this->putLong($this->sendPing); $this->putByte($this->useSecurity ? 1 : 0); }