RakLibPacketSender
in package
implements
PacketSender
Interfaces, Classes, Traits and Enums
Table of Contents
- $closed : bool
- $handler : RakLibInterface
- $sessionId : int
- __construct() : mixed
- close() : void
- Closes the channel, terminating the connection.
- send() : void
- Pushes a packet into the channel to be processed.
Properties
$closed
private
bool
$closed
= false
$handler
private
RakLibInterface
$handler
$sessionId
private
int
$sessionId
Methods
__construct()
public
__construct(int $sessionId, RakLibInterface $handler) : mixed
Parameters
- $sessionId : int
- $handler : RakLibInterface
Return values
mixed —close()
Closes the channel, terminating the connection.
public
close([string $reason = "unknown reason" ]) : void
Parameters
- $reason : string = "unknown reason"
Return values
void —send()
Pushes a packet into the channel to be processed.
public
send(string $payload, bool $immediate) : void
Parameters
- $payload : string
- $immediate : bool