UnconnectedPong
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
- $sendPingTime : int
- $serverId : int
- $serverName : string
- $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_UNCONNECTED_PONG
$sendPingTime
public
int
$sendPingTime
$serverId
public
int
$serverId
$serverName
public
string
$serverName
$magic
protected
string
$magic
Methods
create()
public
static create(int $sendPingTime, int $serverId, string $serverName) : self
Parameters
- $sendPingTime : int
- $serverId : int
- $serverName : string
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