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

Public Member Functions

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

Data Fields

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

Static Public Attributes

static $ID = 0x1c
 
- 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 ( )
38  {
39  parent::decode();
40  $this->pingID = $this->getLong();
41  $this->serverID = $this->getLong();
42  $this->offset += 16; //magic
43  $this->serverName = $this->getString();
44  }

◆ encode()

encode ( )
30  {
31  parent::encode();
32  $this->putLong($this->pingID);
33  $this->putLong($this->serverID);
34  $this->put(RakLib::MAGIC);
35  $this->putString($this->serverName);
36  }

Field Documentation

◆ $ID

$ID = 0x1c
static

◆ $pingID

$pingID

◆ $serverID

$serverID

◆ $serverName

$serverName

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