15declare(strict_types=1);
17namespace raklib\protocol;
28 public array $systemAddresses = [];
29 public int $sendPingTime;
30 public int $sendPongTime;
33 $out->putAddress($this->address);
34 foreach($this->systemAddresses as $address){
35 $out->putAddress($address);
37 $out->putLong($this->sendPingTime);
38 $out->putLong($this->sendPongTime);
42 $this->address = $in->getAddress();
45 $stopOffset = strlen($in->getBuffer()) - 16;
48 if($in->getOffset() >= $stopOffset){
49 $this->systemAddresses[$i] = clone $dummy;
51 $this->systemAddresses[$i] = $in->
getAddress();
55 $this->sendPingTime = $in->
getLong();
56 $this->sendPongTime = $in->
getLong();
static int $SYSTEM_ADDRESS_COUNT
decodePayload(PacketSerializer $in)
const ID_NEW_INCOMING_CONNECTION
RakPeer - A remote system has successfully connected.