diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-09-09 18:27:31 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-09-09 18:27:31 +0200 |
commit | 71c3369e084d0b9e3b91f9517069e58aaecc15e3 (patch) | |
tree | 2e3f8561562a559762aacefbf963a3effb80aa8b /src/Protocol/Protocol18x.h | |
parent | Downgrade SQLiteCpp again (diff) | |
download | cuberite-71c3369e084d0b9e3b91f9517069e58aaecc15e3.tar cuberite-71c3369e084d0b9e3b91f9517069e58aaecc15e3.tar.gz cuberite-71c3369e084d0b9e3b91f9517069e58aaecc15e3.tar.bz2 cuberite-71c3369e084d0b9e3b91f9517069e58aaecc15e3.tar.lz cuberite-71c3369e084d0b9e3b91f9517069e58aaecc15e3.tar.xz cuberite-71c3369e084d0b9e3b91f9517069e58aaecc15e3.tar.zst cuberite-71c3369e084d0b9e3b91f9517069e58aaecc15e3.zip |
Diffstat (limited to 'src/Protocol/Protocol18x.h')
-rw-r--r-- | src/Protocol/Protocol18x.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Protocol/Protocol18x.h b/src/Protocol/Protocol18x.h index 8e8570b68..33e298e48 100644 --- a/src/Protocol/Protocol18x.h +++ b/src/Protocol/Protocol18x.h @@ -133,6 +133,11 @@ public: virtual AString GetAuthServerID(void) override { return m_AuthServerID; } + /** Compress the packet. a_Packet must be without packet length. + a_Compressed will be set to the compressed packet includes packet length and data length. + If compression fails, the function returns false. */ + static bool CompressPacket(const AString & a_Packet, AString & a_Compressed); + protected: /** Composes individual packets in the protocol's m_OutPacketBuffer; sends them upon being destructed */ |