PocketMine-MP
5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
Loading...
Searching...
No Matches
ServerEventListener.php
1
<?php
2
3
/*
4
* This file is part of RakLib.
5
* Copyright (C) 2014-2022 PocketMine Team <https://github.com/pmmp/RakLib>
6
*
7
* RakLib is not affiliated with Jenkins Software LLC nor RakNet.
8
*
9
* RakLib is free software: you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation, either version 3 of the License, or
12
* (at your option) any later version.
13
*/
14
15
declare(strict_types=1);
16
17
namespace
raklib\server;
18
19
use
raklib\generic\DisconnectReason
;
20
21
interface
ServerEventListener
{
22
23
public
function
onClientConnect(
int
$sessionId,
string
$address,
int
$port,
int
$clientID) : void;
24
31
public
function
onClientDisconnect
(
int
$sessionId,
int
$reason) : void;
32
33
public
function
onPacketReceive(
int
$sessionId,
string
$packet) : void;
34
35
public
function
onRawPacketReceive(
string
$address,
int
$port,
string
$payload) : void;
36
37
public
function
onPacketAck(
int
$sessionId,
int
$identifierACK) : void;
38
39
public
function
onBandwidthStatsUpdate(
int
$bytesSentDiff,
int
$bytesReceivedDiff) : void;
40
41
public
function
onPingMeasure(
int
$sessionId,
int
$pingMS) : void;
42
}
raklib\generic\DisconnectReason
Definition
DisconnectReason.php:19
raklib\server\ServerEventListener
Definition
ServerEventListener.php:21
raklib\server\ServerEventListener\onClientDisconnect
onClientDisconnect(int $sessionId, int $reason)
vendor
pocketmine
raklib
src
server
ServerEventListener.php
Generated by
1.12.0