Interfaces, Classes, Traits and Enums
- ServerEventListener
Table of Contents
-
$channel
: InterThreadChannelWriter
-
__construct()
: mixed
-
onBandwidthStatsUpdate()
: void
-
onClientConnect()
: void
-
onClientDisconnect()
: void
-
onPacketAck()
: void
-
onPacketReceive()
: void
-
onPingMeasure()
: void
-
onRawPacketReceive()
: void
__construct()
public
__construct(InterThreadChannelWriter $channel) : mixed
Parameters
-
$channel
: InterThreadChannelWriter
-
Return values
mixed
—
onBandwidthStatsUpdate()
public
onBandwidthStatsUpdate(int $bytesSentDiff, int $bytesReceivedDiff) : void
Parameters
-
$bytesSentDiff
: int
-
-
$bytesReceivedDiff
: int
-
Return values
void
—
onClientConnect()
public
onClientConnect(int $sessionId, string $address, int $port, int $clientId) : void
Parameters
-
$sessionId
: int
-
-
$address
: string
-
-
$port
: int
-
-
$clientId
: int
-
Return values
void
—
onClientDisconnect()
public
onClientDisconnect(int $sessionId, string $reason) : void
Parameters
-
$sessionId
: int
-
-
$reason
: string
-
Return values
void
—
onPacketAck()
public
onPacketAck(int $sessionId, int $identifierACK) : void
Parameters
-
$sessionId
: int
-
-
$identifierACK
: int
-
Return values
void
—
onPacketReceive()
public
onPacketReceive(int $sessionId, string $packet) : void
Parameters
-
$sessionId
: int
-
-
$packet
: string
-
Return values
void
—
onPingMeasure()
public
onPingMeasure(int $sessionId, int $pingMS) : void
Parameters
-
$sessionId
: int
-
-
$pingMS
: int
-
Return values
void
—
onRawPacketReceive()
public
onRawPacketReceive(string $address, int $port, string $payload) : void
Parameters
-
$address
: string
-
-
$port
: int
-
-
$payload
: string
-
Return values
void
—