public function serialize(\fpoirotte\Pssht\Wire\Encoder $encoder) { $encoder->encodeUint32($this->recipientChannel); $encoder->encodeUint32($this->senderChannel); $encoder->encodeUint32($this->initialWindowSize); $encoder->encodeUint32($this->maximumPacketSize); return $this; }
public function serialize(\fpoirotte\Pssht\Wire\Encoder $encoder) { $encoder->encodeUint32($this->sequenceNo); return $this; }
public function serialize(\fpoirotte\Pssht\Wire\Encoder $encoder) { $encoder->encodeUint32($this->code); $encoder->encodeString($this->message); $encoder->encodeString($this->language); return $this; }
public function serialize(\fpoirotte\Pssht\Wire\Encoder $encoder) { $encoder->encodeBytes($this->cookie); $encoder->encodeNameList($this->kexAlgos); $encoder->encodeNameList($this->serverHostKeyAlgos); $encoder->encodeNameList($this->encAlgosC2S); $encoder->encodeNameList($this->encAlgosS2C); $encoder->encodeNameList($this->macAlgosC2S); $encoder->encodeNameList($this->macAlgosS2C); $encoder->encodeNameList($this->compAlgosC2S); $encoder->encodeNameList($this->compAlgosS2C); $encoder->encodeNameList($this->langC2S); $encoder->encodeNameList($this->langS2C); $encoder->encodeBoolean($this->firstKexPacket); $encoder->encodeUint32(0); // Reserved for future extension. return $this; }