OpenConnectionReply1
extends OfflineMessage
in package
Table of Contents
- MAGIC = "\x00\xff\xff\x00\xfe\xfe\xfe\xfe\xfd\xfd\xfd\xfd\x124Vx"
- Magic bytes used to distinguish offline messages from loose garbage.
- $ID : mixed
- $mtuSize : int
- $serverID : int
- $serverSecurity : bool
- $magic : string
- create() : self
- decode() : void
- encode() : void
- isValid() : bool
- decodeHeader() : void
- decodePayload() : void
- encodeHeader() : void
- encodePayload() : void
- readMagic() : void
- writeMagic() : void
Constants
MAGIC
Magic bytes used to distinguish offline messages from loose garbage.
private
mixed
MAGIC
= "\x00\xff\xff\x00\xfe\xfe\xfe\xfe\xfd\xfd\xfd\xfd\x124Vx"
Properties
$ID
public
static mixed
$ID
= \raklib\protocol\MessageIdentifiers::ID_OPEN_CONNECTION_REPLY_1
$mtuSize
public
int
$mtuSize
$serverID
public
int
$serverID
$serverSecurity
public
bool
$serverSecurity
= false
$magic
protected
string
$magic
Methods
create()
public
static create(int $serverId, bool $serverSecurity, int $mtuSize) : self
Parameters
- $serverId : int
- $serverSecurity : bool
- $mtuSize : int
Return values
self —decode()
public
decode(PacketSerializer $in) : void
Parameters
- $in : PacketSerializer
Tags
Return values
void —encode()
public
encode(PacketSerializer $out) : void
Parameters
- $out : PacketSerializer
Return values
void —isValid()
public
isValid() : bool
Return values
bool —decodeHeader()
protected
decodeHeader(PacketSerializer $in) : void
Parameters
- $in : PacketSerializer
Tags
Return values
void —decodePayload()
protected
decodePayload(PacketSerializer $in) : void
Parameters
- $in : PacketSerializer
Return values
void —encodeHeader()
protected
encodeHeader(PacketSerializer $out) : void
Parameters
- $out : PacketSerializer
Return values
void —encodePayload()
protected
encodePayload(PacketSerializer $out) : void
Parameters
- $out : PacketSerializer
Return values
void —readMagic()
protected
readMagic(BinaryStream $in) : void
Parameters
- $in : BinaryStream
Tags
Return values
void —writeMagic()
protected
writeMagic(BinaryStream $out) : void
Parameters
- $out : BinaryStream