ConnectedPing
extends ConnectedPacket
in package
Represents a packet which is sent inside an EncapsulatedPacket.
Table of Contents
- $ID : mixed
- $sendPingTime : int
- create() : self
- decode() : void
- encode() : void
- decodeHeader() : void
- decodePayload() : void
- encodeHeader() : void
- encodePayload() : void
Properties
$ID
public
static mixed
$ID
= \raklib\protocol\MessageIdentifiers::ID_CONNECTED_PING
$sendPingTime
public
int
$sendPingTime
Methods
create()
public
static create(int $sendPingTime) : self
Parameters
- $sendPingTime : 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 —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