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

Public Member Functions

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

Data Fields

 $clientID
 
 $sendPing
 
 $useSecurity = false
 
- Data Fields inherited from Packet
 $buffer
 
 $sendTime
 

Static Public Attributes

static $ID = 0x09
 
- 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 ( )
40  {
41  parent::decode();
42  $this->clientID = $this->getLong();
43  $this->sendPing = $this->getLong();
44  $this->useSecurity = $this->getByte() > 0;
45  }

◆ encode()

encode ( )
33  {
34  parent::encode();
35  $this->putLong($this->clientID);
36  $this->putLong($this->sendPing);
37  $this->putByte($this->useSecurity ? 1 : 0);
38  }

Field Documentation

◆ $clientID

$clientID

◆ $ID

$ID = 0x09
static

◆ $sendPing

$sendPing

◆ $useSecurity

$useSecurity = false

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