PocketMine-MP
5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
Loading...
Searching...
No Matches
ServerInterface.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\protocol\EncapsulatedPacket
;
20
21
interface
ServerInterface
{
22
23
public
function
sendEncapsulated(
int
$sessionId,
EncapsulatedPacket
$packet,
bool
$immediate =
false
) : void;
24
25
public
function
sendRaw(
string
$address,
int
$port,
string
$payload) : void;
26
27
public
function
closeSession(
int
$sessionId) : void;
28
29
public
function
setName(
string
$name) : void;
30
31
public
function
setPortCheck(
bool
$value) : void;
32
33
public
function
setPacketsPerTickLimit(
int
$limit) : void;
34
35
public
function
blockAddress(
string
$address,
int
$timeout) : void;
36
37
public
function
unblockAddress(
string
$address) : void;
38
39
public
function
addRawPacketFilter(
string
$regex) : void;
40
}
raklib\protocol\EncapsulatedPacket
Definition
EncapsulatedPacket.php:26
raklib\server\ServerInterface
Definition
ServerInterface.php:21
vendor
pocketmine
raklib
src
server
ServerInterface.php
Generated by
1.12.0