15declare(strict_types=1);
17namespace raklib\protocol;
27 public bool $serverSecurity =
false;
29 public static function create(
int $serverId,
InternetAddress $clientAddress,
int $mtuSize,
bool $serverSecurity) :
self{
31 $result->serverID = $serverId;
32 $result->clientAddress = $clientAddress;
33 $result->mtuSize = $mtuSize;
34 $result->serverSecurity = $serverSecurity;
40 $out->putLong($this->serverID);
41 $out->putAddress($this->clientAddress);
42 $out->putShort($this->mtuSize);
43 $out->putByte($this->serverSecurity ? 1 : 0);
48 $this->serverID = $in->
getLong();
51 $this->serverSecurity = $in->
getByte() !== 0;
writeMagic(BinaryStream $out)
readMagic(BinaryStream $in)
decodePayload(PacketSerializer $in)
const ID_OPEN_CONNECTION_REPLY_2
S2C: Header(1), OfflineMesageID(16), server GUID(8), mtu(2), doSecurity(1 bit), handshakeAnswer (if d...