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;