Mineserver
A rewrite of Minecraft 1.8.9 in C++ !
|
Set Compression Packet. More...
#include <setcompression.h>
Public Member Functions | |
SetCompression (int threshold) | |
Construct a new Login Start object. | |
void | read (IMCStream *stream) override |
Reads 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. | |
Public Attributes | |
int | threshold |
Threshold in size before compressing packets. | |
Public Attributes inherited from IPacket | |
int | id |
Packet Id. | |
Additional Inherited Members | |
Protected Member Functions inherited from IPacket | |
IPacket (int id) | |
Construct a new IPacket object. | |
Set Compression Packet.
Is not exposed to lua as it could break if the threshold value is modified.
Reads Packet data.
stream | the stream to read from |
Implements IPacket.