UnconnectedMessageHandler
in package
Table of Contents
- $packetPool : array<string|int, OfflineMessage>|SplFixedArray
- $protocolAcceptor : ProtocolAcceptor
- $server : Server
- __construct() : mixed
- getPacketFromPool() : OfflineMessage|null
- handleRaw() : bool
- handle() : bool
- registerPacket() : void
- registerPackets() : void
Properties
$packetPool
private
array<string|int, OfflineMessage>|SplFixedArray
$packetPool
Tags
$protocolAcceptor
private
ProtocolAcceptor
$protocolAcceptor
$server
private
Server
$server
Methods
__construct()
public
__construct(Server $server, ProtocolAcceptor $protocolAcceptor) : mixed
Parameters
- $server : Server
- $protocolAcceptor : ProtocolAcceptor
Return values
mixed —getPacketFromPool()
public
getPacketFromPool(string $buffer) : OfflineMessage|null
Parameters
- $buffer : string
Return values
OfflineMessage|null —handleRaw()
public
handleRaw(string $payload, InternetAddress $address) : bool
Parameters
- $payload : string
- $address : InternetAddress
Tags
Return values
bool —handle()
private
handle(OfflineMessage $packet, InternetAddress $address) : bool
Parameters
- $packet : OfflineMessage
- $address : InternetAddress
Return values
bool —registerPacket()
private
registerPacket(int $id, string $class) : void
Parameters
- $id : int
- $class : string
Tags
Return values
void —registerPackets()
private
registerPackets() : void