UnconnectedPingOpenConnections
extends UnconnectedPing
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.
- $clientId : int
- $ID : mixed
- $sendPingTime : int
- $magic : string
- 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
$clientId
public
int
$clientId
$ID
public
static mixed
$ID
= \raklib\protocol\MessageIdentifiers::ID_UNCONNECTED_PING_OPEN_CONNECTIONS
$sendPingTime
public
int
$sendPingTime
$magic
protected
string
$magic
Methods
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
abstract decodePayload(PacketSerializer $in) : void
Parameters
- $in : PacketSerializer
Tags
Return values
void —encodeHeader()
protected
encodeHeader(PacketSerializer $out) : void
Parameters
- $out : PacketSerializer
Return values
void —encodePayload()
protected
abstract 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