15declare(strict_types=1);
17namespace raklib\protocol;
23 public bool $serverSecurity =
false;
26 public static function create(
int $serverId,
bool $serverSecurity,
int $mtuSize) :
self{
28 $result->serverID = $serverId;
29 $result->serverSecurity = $serverSecurity;
30 $result->mtuSize = $mtuSize;
36 $out->putLong($this->serverID);
37 $out->putByte($this->serverSecurity ? 1 : 0);
38 $out->putShort($this->mtuSize);
43 $this->serverID = $in->
getLong();
44 $this->serverSecurity = $in->
getByte() !== 0;
writeMagic(BinaryStream $out)
readMagic(BinaryStream $in)
decodePayload(PacketSerializer $in)
const ID_OPEN_CONNECTION_REPLY_1