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

Public Member Functions

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

Data Fields

 $pingID
 
- Data Fields inherited from Packet
 $buffer
 
 $sendTime
 

Static Public Attributes

static $ID = 0x03
 
- 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->pingID = $this->getLong();
39  }

◆ encode()

encode ( )
31  {
32  parent::encode();
33  $this->putLong($this->pingID);
34  }

Field Documentation

◆ $ID

$ID = 0x03
static

◆ $pingID

$pingID

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