PHP 클래스 pocketmine\network\Network

파일 보기 프로젝트 열기: iTXTech/Genisys 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$BATCH_THRESHOLD

공개 메소드들

메소드 설명
__construct ( Server $server )
addStatistics ( $upload, $download )
blockAddress ( string $address, integer $timeout = 300 ) Blocks an IP address from the main interface. Setting timeout to -1 will block it forever
getDownload ( )
getInterfaces ( ) : pocketmine\network\SourceInterface[]
getName ( )
getPacket ( $id ) : DataPacket
getServer ( )
getUpload ( )
processBatch ( BatchPacket $packet, Player $p )
processInterfaces ( )
registerInterface ( pocketmine\network\SourceInterface $interface )
registerPacket ( integer $id, DataPacket $class )
resetStatistics ( )
sendPacket ( string $address, integer $port, string $payload )
setName ( string $name ) Sets the server name shown on each interface Query
unblockAddress ( string $address ) Unblocks an IP address from the main interface.
unregisterInterface ( pocketmine\network\SourceInterface $interface )
updateName ( )

비공개 메소드들

메소드 설명
registerPackets ( )

메소드 상세

__construct() 공개 메소드

public __construct ( Server $server )
$server pocketmine\Server

addStatistics() 공개 메소드

public addStatistics ( $upload, $download )

blockAddress() 공개 메소드

Blocks an IP address from the main interface. Setting timeout to -1 will block it forever
public blockAddress ( string $address, integer $timeout = 300 )
$address string
$timeout integer

getDownload() 공개 메소드

public getDownload ( )

getInterfaces() 공개 메소드

public getInterfaces ( ) : pocketmine\network\SourceInterface[]
리턴 pocketmine\network\SourceInterface[]

getName() 공개 메소드

public getName ( )

getPacket() 공개 메소드

public getPacket ( $id ) : DataPacket
$id
리턴 pocketmine\network\protocol\DataPacket

getServer() 공개 메소드

public getServer ( )

getUpload() 공개 메소드

public getUpload ( )

processBatch() 공개 메소드

public processBatch ( BatchPacket $packet, Player $p )
$packet pocketmine\network\protocol\BatchPacket
$p pocketmine\Player

processInterfaces() 공개 메소드

public processInterfaces ( )

registerInterface() 공개 메소드

public registerInterface ( pocketmine\network\SourceInterface $interface )
$interface pocketmine\network\SourceInterface

registerPacket() 공개 메소드

public registerPacket ( integer $id, DataPacket $class )
$id integer 0-255
$class pocketmine\network\protocol\DataPacket

resetStatistics() 공개 메소드

public resetStatistics ( )

sendPacket() 공개 메소드

public sendPacket ( string $address, integer $port, string $payload )
$address string
$port integer
$payload string

setName() 공개 메소드

Sets the server name shown on each interface Query
public setName ( string $name )
$name string

unblockAddress() 공개 메소드

Unblocks an IP address from the main interface.
public unblockAddress ( string $address )
$address string

unregisterInterface() 공개 메소드

public unregisterInterface ( pocketmine\network\SourceInterface $interface )
$interface pocketmine\network\SourceInterface

updateName() 공개 메소드

public updateName ( )

프로퍼티 상세

$BATCH_THRESHOLD 공개적으로 정적으로 프로퍼티

public static $BATCH_THRESHOLD