Mineserver
A rewrite of Minecraft 1.8.9 in C++ !
Loading...
Searching...
No Matches
setcompression.h
Go to the documentation of this file.
1
12#ifndef MINESERVER_SETCOMPRESSION_H
13#define MINESERVER_SETCOMPRESSION_H
14
15#include <net/packet.h>
16
24class SetCompression : public IPacket
25{
26private:
32 void write(IMCStream *stream) override;
33
34public:
40
46
53 void read(IMCStream *stream) override;
54};
55
56#endif // MINESERVER_SETCOMPRESSION_H
Stream interface.
Definition stream.h:32
Interface for all Packets.
Definition packet.h:25
Set Compression Packet.
Definition setcompression.h:25
SetCompression(int threshold)
Construct a new Login Start object.
Definition setcompression.h:39
int threshold
Threshold in size before compressing packets.
Definition setcompression.h:45
void read(IMCStream *stream) override
Reads Packet data.
Definition setcompression.cpp:19
The file containing the packet data.