public function deserialize(&$data)
 {
     parent::deserialize($data);
     $this->bytesToInt($this->limitUpld, $data);
     $this->bytesToInt($this->limitDwnld, $data);
     $this->bytesToInt($this->seedLimit, $data);
     $this->bytesToLong($this->seedTimeout, $data);
 }
 public function deserialize(&$data)
 {
     parent::deserialize($data);
     $size = 0;
     $this->bytesToInt($size, $data);
     for ($i = 0; $i < $size; $i++) {
         $status = new Status();
         $status->deserialize($data);
         $this->status[] = $status;
     }
 }
예제 #3
0
 public function deserialize(&$data)
 {
     parent::deserialize($data);
     $size = 0;
     $this->bytesToInt($size, $data);
     for ($i = 0; $i < $size; $i++) {
         $fi = new fileInformation();
         $fi->deserialize($data);
         $this->fileinfolist[] = $fi;
     }
 }
 public function deserialize(&$data)
 {
     parent::deserialize($data);
     $size = 0;
     $this->bytesToInt($size, $data);
     for ($i = 0; $i < $size; $i++) {
         $peer = new Peer();
         $peer->deserialize($data);
         $this->peerlist[] = $peer;
     }
 }
예제 #5
0
 public function lastCIDResponseCommand($context_id = contextCommand::UNDEFINED_CONTEXT)
 {
     parent::__construct(Command::CN_CLASTRSP, $context_id);
 }
예제 #6
0
 public function deserialize(&$data)
 {
     parent::deserialize($data);
     $this->bytesToIntList($this->context_ids, $data);
 }
예제 #7
0
 public function contextStartCommand($context_id = contextCommand::UNDEFINED_CONTEXT, $allContexts = false)
 {
     parent::__construct(Command::CN_CSTART, $context_id, $allContexts);
 }
예제 #8
0
 public function deserialize(&$data)
 {
     parent::deserialize($data);
     $this->bytesToBool($this->eraseData, $data);
 }
예제 #9
0
 public function deserialize(&$data)
 {
     parent::deserialize($data);
     $this->bytesToStringList($this->trackers, $data);
 }
예제 #10
0
 public function contextPeersCommand($context_id = contextCommand::UNDEFINED_CONTEXT, $allContexts = false)
 {
     parent::__construct(Command::CN_CPEERS, $context_id, $allContexts);
 }
예제 #11
0
 public function contextFileInfoCommand($context_id = contextCommand::UNDEFINED_CONTEXT, $allContexts = false)
 {
     parent::__construct(Command::CN_CFILEINFO, $context_id, $allContexts);
 }
예제 #12
0
 public function deserialize(&$data)
 {
     parent::deserialize($data);
     // Size of the list.
     $size = 0;
     $this->bytesToInt($size, $data);
     // Each entry.
     for ($i = 0; $i < $size; $i++) {
         $entry = new selectedFileEntry();
         $entry->deserialize($data);
         $this->filelist[] = $entry;
     }
 }
예제 #13
0
 public function contextLimitStatusCommand($context_id = contextCommand::UNDEFINED_CONTEXT, $allContexts = false)
 {
     parent::__construct(Command::CN_CLIMITSTATUS, $context_id, $allContexts);
 }