public function decode() { parent::decode(); $this->clientID = $this->getLong(); $this->sendPing = $this->getLong(); $this->useSecurity = $this->getByte() > 0; }
public function decode() { parent::decode(); $this->clientID = $this->getLong(); $this->session = $this->getLong(); $this->unknown = $this->get(1); }
public function decode() { parent::decode(); $this->getAddress($this->address, $this->port); for ($i = 0; $i < 10; ++$i) { $this->getAddress($addr, $port, $version); $this->systemAddresses[$i] = [$addr, $port, $version]; } $this->sendPing = $this->getLong(); $this->sendPong = $this->getLong(); }
public function decode() { parent::decode(); $this->cookie = $this->get(4); $this->security = $this->get(1); $this->port = $this->getShort(); $this->dataArray0 = $this->get($this->getByte()); $this->dataArray = $this->getDataArray(9); $this->timestamp = $this->get(2); $this->session2 = $this->getLong(); $this->session = $this->getLong(); }
public function decode() { parent::decode(); $this->seqNumber = $this->getLTriad(); while (!$this->feof()) { $offset = 0; $packet = EncapsulatedPacket::fromBinary(substr($this->buffer, $this->offset), false, $offset); $this->offset += $offset; if (strlen($packet->buffer) === 0) { break; } $this->packets[] = $packet; } }
public function decode() { parent::decode(); $this->seqNumber = unpack("V", $this->get(3) . "")[1]; while (!$this->feof()) { $offset = 0; $data = substr($this->buffer, $this->offset); $packet = EncapsulatedPacket::fromBinary($data, false, $offset); $this->offset += $offset; if (strlen($packet->buffer) === 0) { break; } $this->packets[] = $packet; } }
public function decode() { parent::decode(); $count = unpack("n", $this->get(2))[1]; $this->packets = []; $cnt = 0; for ($i = 0; $i < $count and !$this->feof() and $cnt < 4096; ++$i) { if (ord($this->get(1)) === 0) { $start = unpack("V", $this->get(3) . "")[1]; $end = unpack("V", $this->get(3) . "")[1]; if ($end - $start > 512) { $end = $start + 512; } for ($c = $start; $c <= $end; ++$c) { $this->packets[$cnt++] = $c; } } else { $this->packets[$cnt++] = unpack("V", $this->get(3) . "")[1]; } } }
public function decode() { parent::decode(); //TODO, not needed yet }
public function decode() { parent::decode(); }
public function decode() { parent::decode(); $this->pingID = $this->getLong(); }