35 public static function create(
InternetAddress $clientAddress, array $systemAddresses,
int $sendPingTime,
int $sendPongTime) : self{
37 $result->address = $clientAddress;
38 $result->systemAddresses = $systemAddresses;
39 $result->sendPingTime = $sendPingTime;
40 $result->sendPongTime = $sendPongTime;
62 $this->address = $in->getAddress();
65 $len = strlen($in->getBuffer());
68 for($i = 0; $i < RakLib::$SYSTEM_ADDRESS_COUNT; ++$i){
69 $this->systemAddresses[$i] = $in->getOffset() + 16 < $len ? $in->
getAddress() : $dummy;
72 $this->sendPingTime = $in->
getLong();
73 $this->sendPongTime = $in->
getLong();