summaryrefslogtreecommitdiff
path: root/src/clientiface.h
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2015-03-13 16:35:21 +0100
committerLoic Blot <loic.blot@unix-experience.fr>2015-03-13 20:23:03 +0100
commit74d34da6cbb06a4d5659eb3287a87239c31da22c (patch)
tree639e35ad15a662006442431fdcc53b441f415e7f /src/clientiface.h
parent9f3fc7201beedc66f974d54415b8e3fedb13ccb3 (diff)
downloadminetest-74d34da6cbb06a4d5659eb3287a87239c31da22c.tar.gz
minetest-74d34da6cbb06a4d5659eb3287a87239c31da22c.tar.bz2
minetest-74d34da6cbb06a4d5659eb3287a87239c31da22c.zip
Prepare Protocol v25 init & authentication.
* TOSERVER_INIT and TOCLIENT_INIT renamed to _LEGACY * TOSERVER_PASSWORD merged from dev-0.5, can use protocol v24 and v25 * TOCLIENT_ACCESS_DENIED merged from dev-0.5, can use protocol v24 and v25, with normalized strings an a custom id for custom errors * new TOSERVER_INIT packet only send MT version, supported compressions, protocols and serialization, this permit to rework everything later without break the _INIT packet * new TOSERVER_AUTH packet which auth the client * new TOCLIENT_HELLO packet which send server serialization version atm * new TOCLIENT_AUTH_ACCEPTED which is send when TOCLIENT_AUTH was okay. After this packet, the client load datas from servers, like after TOCLIENT_INIT_LEGACY packet
Diffstat (limited to 'src/clientiface.h')
-rw-r--r--src/clientiface.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/clientiface.h b/src/clientiface.h
index cc303734a..2fd293de2 100644
--- a/src/clientiface.h
+++ b/src/clientiface.h
@@ -217,6 +217,7 @@ public:
m_version_minor(0),
m_version_patch(0),
m_full_version("unknown"),
+ m_supported_compressions(0),
m_connection_time(getTime(PRECISION_SECONDS))
{
}
@@ -293,6 +294,9 @@ public:
void setPendingSerializationVersion(u8 version)
{ m_pending_serialization_version = version; }
+ void setSupportedCompressionModes(u8 byteFlag)
+ { m_supported_compressions = byteFlag; }
+
void confirmSerializationVersion()
{ serialization_version = m_pending_serialization_version; }
@@ -370,6 +374,8 @@ private:
std::string m_full_version;
+ u8 m_supported_compressions;
+
/*
time this client was created
*/