Mineserver
A rewrite of Minecraft 1.8.9 in C++ !
|
The Ping Pong Packet. More...
#include <pingpong.h>
Public Member Functions | |
PingPongPacket () | |
Construct a new Server List Packet object. | |
~PingPongPacket () override=default | |
Destroy the Server List Packet object. | |
void | read (IMCStream *stream) override |
Read Packet Data. | |
Public Member Functions inherited from IPacket | |
virtual | ~IPacket ()=default |
Destroy the IPacket object. | |
void | send (IMCStream *stream) |
Sends a Packet in Minecraft format. | |
Static Public Member Functions | |
static void | loadLua (lua_State *state, const char *baseNamespaceName) |
Loads this Packet as lua class. | |
Public Attributes | |
long | payload |
Payload. | |
Public Attributes inherited from IPacket | |
int | id |
Packet Id. | |
Protected Member Functions | |
void | write (IMCStream *stream) override |
Write Packet Data. | |
Protected Member Functions inherited from IPacket | |
IPacket (int id) | |
Construct a new IPacket object. | |
The Ping Pong Packet.
Packet for detecting the ping between the client and the server.
Loads this Packet as lua class.
state | lua state to load to |
baseNamespaceName | the namespace name |
Read Packet Data.
Reads the payload from the client
stream | the stream to read from |
Implements IPacket.
Write Packet Data.
Writes back the payload obtained
stream | the stream to write to |
Implements IPacket.