GenisysPro  for Minecraft PE/Windows 10 v1.1.x
Feature-rich server software for Minecraft PE and Windows 10 Edition
OPEN_CONNECTION_REQUEST_1 Class Reference

Public Member Functions

 encode ()
 
 decode ()
 
- Public Member Functions inherited from Packet
 encode ()
 
 decode ()
 
 clean ()
 

Data Fields

 $protocol = RakLib::PROTOCOL
 
 $mtuSize
 
- Data Fields inherited from Packet
 $buffer
 
 $sendTime
 

Static Public Attributes

static $ID = 0x05
 
- Static Public Attributes inherited from Packet
static $ID = -1
 

Additional Inherited Members

- Protected Member Functions inherited from Packet
 get ($len)
 
 getLong ($signed=true)
 
 getInt ()
 
 getShort ($signed=true)
 
 getTriad ()
 
 getLTriad ()
 
 getByte ()
 
 getString ()
 
 getAddress (&$addr, &$port, &$version=null)
 
 feof ()
 
 put ($str)
 
 putLong ($v)
 
 putInt ($v)
 
 putShort ($v)
 
 putTriad ($v)
 
 putLTriad ($v)
 
 putByte ($v)
 
 putString ($v)
 
 putAddress ($addr, $port, $version=4)
 
- Protected Attributes inherited from Packet
 $offset = 0
 

Member Function Documentation

◆ decode()

decode ( )
36  {
37  parent::decode();
38  $this->offset += 16; //Magic
39  $this->protocol = $this->getByte();
40  $this->mtuSize = strlen($this->get(true)) + 18;
41  }

◆ encode()

encode ( )
29  {
30  parent::encode();
31  $this->put(RakLib::MAGIC);
32  $this->putByte($this->protocol);
33  $this->put(str_repeat(chr(0x00), $this->mtuSize - 18));
34  }

Field Documentation

◆ $ID

$ID = 0x05
static

◆ $mtuSize

$mtuSize

◆ $protocol

$protocol = RakLib::PROTOCOL

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