ConnectionRequestAccepted
extends ConnectedPacket
in package
Represents a packet which is sent inside an EncapsulatedPacket.
Table of Contents
- $address : InternetAddress
- $ID : mixed
- $sendPingTime : int
- $sendPongTime : int
- $systemAddresses : array<string|int, InternetAddress>
- __construct() : mixed
- create() : self
- decode() : void
- encode() : void
- decodeHeader() : void
- decodePayload() : void
- encodeHeader() : void
- encodePayload() : void
Properties
$address
public
InternetAddress
$address
$ID
public
static mixed
$ID
= \raklib\protocol\MessageIdentifiers::ID_CONNECTION_REQUEST_ACCEPTED
$sendPingTime
public
int
$sendPingTime
$sendPongTime
public
int
$sendPongTime
$systemAddresses
public
array<string|int, InternetAddress>
$systemAddresses
= []
Methods
__construct()
public
__construct() : mixed
Return values
mixed —create()
public
static create(InternetAddress $clientAddress, array<string|int, InternetAddress> $systemAddresses, int $sendPingTime, int $sendPongTime) : self
Parameters
- $clientAddress : InternetAddress
- $systemAddresses : array<string|int, InternetAddress>
- $sendPingTime : int
- $sendPongTime : 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