示例#1
0
 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;
 }
示例#2
0
 public function serialize(\fpoirotte\Pssht\Wire\Encoder $encoder)
 {
     $encoder->encodeUint32($this->sequenceNo);
     return $this;
 }
示例#3
0
 public function serialize(\fpoirotte\Pssht\Wire\Encoder $encoder)
 {
     $encoder->encodeUint32($this->code);
     $encoder->encodeString($this->message);
     $encoder->encodeString($this->language);
     return $this;
 }
示例#4
0
 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;
 }