Exemple #1
0
 /**
  * Unserializes a STRUCTURES message
  *
  * @access public
  * @return void
  */
 public function unserialize()
 {
     parent::unserialize();
     $this->sequence = $this->getNumber2();
     $this->aliases = $this->getStrings();
     $this->headers = $this->getHash();
     // Cleanup
     $this->needle = 0;
     // 0xAAA0 is the signature of the messages
     $this->buffer = pack('C*', 0xaa, 0xa0 | 0, static::ID);
 }
Exemple #2
0
 /**
  * Unserializes a BINARY message
  *
  * @access public
  * @return void
  */
 public function unserialize()
 {
     parent::unserialize();
     $this->sequence = $this->getNumber2();
     $this->flags = $this->getOctets(4);
     $this->publicKey = $this->getBytes();
     $this->identifier = $this->getUuid();
     // Cleanup
     $this->needle = 0;
     // 0xAAA0 is the signature of the messages
     $this->buffer = pack('C*', 0xaa, 0xa0 | 0, static::ID);
 }
Exemple #3
0
 /**
  * Unserializes a LOG message
  *
  * @access public
  * @return void
  */
 public function unserialize()
 {
     parent::unserialize();
     $this->sequence = $this->getNumber2();
     $this->version = $this->getNumber2();
     $this->level = $this->getNumber();
     $this->event = $this->getNumber();
     $this->node = $this->getNumber2();
     $this->peer = $this->getNumber2();
     $this->time = $this->getNumber8();
     $this->host = $this->getString();
     $this->data = $this->getLongString();
     // Cleanup
     $this->needle = 0;
     // 0xAAA0 is the signature of the messages
     $this->buffer = pack('C*', 0xaa, 0xa0 | 0, static::ID);
 }
Exemple #4
0
 /**
  * Unserializes a TYPES message
  *
  * @access public
  * @return void
  */
 public function unserialize()
 {
     parent::unserialize();
     $this->sequence = $this->getNumber2();
     $this->clientForename = $this->getString();
     $this->clientSurname = $this->getString();
     $this->clientMobile = $this->getString();
     $this->clientEmail = $this->getString();
     $this->supplierForename = $this->getString();
     $this->supplierSurname = $this->getString();
     $this->supplierMobile = $this->getString();
     $this->supplierEmail = $this->getString();
     // Cleanup
     $this->needle = 0;
     // 0xAAA0 is the signature of the messages
     $this->buffer = pack('C*', 0xaa, 0xa0 | 0, static::ID);
 }