PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
Loading...
Searching...
No Matches
raklib\protocol\Datagram Class Reference
+ Inheritance diagram for raklib\protocol\Datagram:
+ Collaboration diagram for raklib\protocol\Datagram:

Public Member Functions

 decode (PacketSerializer $in)
 
 encode (PacketSerializer $out)
 
 length ()
 

Public Attributes

int $headerFlags = 0
 
array $packets = []
 
int $seqNumber
 
const BITFLAG_ACK = 0x40
 
const BITFLAG_CONTINUOUS_SEND = 0x08
 
const BITFLAG_NAK = 0x20
 
const BITFLAG_NEEDS_B_AND_AS = 0x04
 
const BITFLAG_PACKET_PAIR = 0x10
 
const BITFLAG_VALID = 0x80
 
const HEADER_SIZE = 1 + 3
 

Static Public Attributes

static $ID = -1
 

Protected Member Functions

 decodeHeader (PacketSerializer $in)
 
 decodePayload (PacketSerializer $in)
 
 encodeHeader (PacketSerializer $out)
 
 encodePayload (PacketSerializer $out)
 

Detailed Description

Definition at line 19 of file Datagram.php.

Member Function Documentation

◆ decode()

raklib\protocol\Packet::decode ( PacketSerializer $in)
inherited
Exceptions
BinaryDataException

Definition at line 39 of file raklib/src/protocol/Packet.php.

◆ decodeHeader()

raklib\protocol\Datagram::decodeHeader ( PacketSerializer $in)
protected
Exceptions
BinaryDataException

Reimplemented from raklib\protocol\Packet.

Definition at line 62 of file Datagram.php.

◆ decodePayload()

raklib\protocol\Datagram::decodePayload ( PacketSerializer $in)
protected
Exceptions
BinaryDataException

Reimplemented from raklib\protocol\Packet.

Definition at line 66 of file Datagram.php.

◆ encode()

raklib\protocol\Packet::encode ( PacketSerializer $out)
inherited

Definition at line 25 of file raklib/src/protocol/Packet.php.

◆ encodeHeader()

raklib\protocol\Datagram::encodeHeader ( PacketSerializer $out)
protected

Reimplemented from raklib\protocol\Packet.

Definition at line 39 of file Datagram.php.

◆ encodePayload()

raklib\protocol\Datagram::encodePayload ( PacketSerializer $out)
protected

Reimplemented from raklib\protocol\Packet.

Definition at line 43 of file Datagram.php.

◆ length()

raklib\protocol\Datagram::length ( )
Returns
int

Definition at line 53 of file Datagram.php.

Member Data Documentation

◆ $headerFlags

int raklib\protocol\Datagram::$headerFlags = 0

Definition at line 34 of file Datagram.php.

◆ $ID

raklib\protocol\Packet::$ID = -1
staticinherited

Definition at line 23 of file raklib/src/protocol/Packet.php.

◆ $packets

array raklib\protocol\Datagram::$packets = []

Definition at line 36 of file Datagram.php.

◆ $seqNumber

int raklib\protocol\Datagram::$seqNumber

Definition at line 37 of file Datagram.php.

◆ BITFLAG_ACK

const raklib\protocol\Datagram::BITFLAG_ACK = 0x40

Definition at line 21 of file Datagram.php.

◆ BITFLAG_CONTINUOUS_SEND

const raklib\protocol\Datagram::BITFLAG_CONTINUOUS_SEND = 0x08

Definition at line 29 of file Datagram.php.

◆ BITFLAG_NAK

const raklib\protocol\Datagram::BITFLAG_NAK = 0x20

Definition at line 22 of file Datagram.php.

◆ BITFLAG_NEEDS_B_AND_AS

const raklib\protocol\Datagram::BITFLAG_NEEDS_B_AND_AS = 0x04

Definition at line 30 of file Datagram.php.

◆ BITFLAG_PACKET_PAIR

const raklib\protocol\Datagram::BITFLAG_PACKET_PAIR = 0x10

Definition at line 28 of file Datagram.php.

◆ BITFLAG_VALID

const raklib\protocol\Datagram::BITFLAG_VALID = 0x80

Definition at line 20 of file Datagram.php.

◆ HEADER_SIZE

const raklib\protocol\Datagram::HEADER_SIZE = 1 + 3

Definition at line 32 of file Datagram.php.


The documentation for this class was generated from the following file: