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; } }
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; } }
public function lastCIDResponseCommand($context_id = contextCommand::UNDEFINED_CONTEXT) { parent::__construct(Command::CN_CLASTRSP, $context_id); }
public function deserialize(&$data) { parent::deserialize($data); $this->bytesToIntList($this->context_ids, $data); }
public function contextStartCommand($context_id = contextCommand::UNDEFINED_CONTEXT, $allContexts = false) { parent::__construct(Command::CN_CSTART, $context_id, $allContexts); }
public function deserialize(&$data) { parent::deserialize($data); $this->bytesToBool($this->eraseData, $data); }
public function deserialize(&$data) { parent::deserialize($data); $this->bytesToStringList($this->trackers, $data); }
public function contextPeersCommand($context_id = contextCommand::UNDEFINED_CONTEXT, $allContexts = false) { parent::__construct(Command::CN_CPEERS, $context_id, $allContexts); }
public function contextFileInfoCommand($context_id = contextCommand::UNDEFINED_CONTEXT, $allContexts = false) { parent::__construct(Command::CN_CFILEINFO, $context_id, $allContexts); }
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; } }
public function contextLimitStatusCommand($context_id = contextCommand::UNDEFINED_CONTEXT, $allContexts = false) { parent::__construct(Command::CN_CLIMITSTATUS, $context_id, $allContexts); }