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;