summaryrefslogtreecommitdiff
path: root/src/network/networkprotocol.h
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-05-16 01:19:43 +0200
committerest31 <MTest31@outlook.com>2015-05-16 21:17:28 +0200
commit8dbf68331386f5f6a40ff0f0a77f5390bdca60b9 (patch)
tree2fe3a94702dcda55b41f614466306ab62e0b98bf /src/network/networkprotocol.h
parent19cbb6b37b9a35df7892bde5aad138266496eb8f (diff)
downloadminetest-8dbf68331386f5f6a40ff0f0a77f5390bdca60b9.tar.gz
minetest-8dbf68331386f5f6a40ff0f0a77f5390bdca60b9.tar.bz2
minetest-8dbf68331386f5f6a40ff0f0a77f5390bdca60b9.zip
Finalize init packets and enable protocol v25
This enables srp.
Diffstat (limited to 'src/network/networkprotocol.h')
-rw-r--r--src/network/networkprotocol.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/network/networkprotocol.h b/src/network/networkprotocol.h
index ba12a206e..09617c9d9 100644
--- a/src/network/networkprotocol.h
+++ b/src/network/networkprotocol.h
@@ -131,7 +131,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
Add TOCLIENT_AUTH_ACCEPT to accept connection from client
*/
-#define LATEST_PROTOCOL_VERSION 24
+#define LATEST_PROTOCOL_VERSION 25
// Server's supported network protocol range
#define SERVER_PROTOCOL_VERSION_MIN 13
@@ -158,7 +158,9 @@ enum ToClientCommand
/*
Sent after TOSERVER_INIT.
- u8 deployed version
+ u8 deployed serialisation version
+ u16 deployed network compression mode
+ u16 deployed protocol version
u32 supported auth methods
std::string username that should be used for legacy hash (for proper casing)
*/
@@ -632,11 +634,11 @@ enum ToServerCommand
/*
Sent first after connected.
- [2] u8 SER_FMT_VER_HIGHEST_READ
- [3] u8 compression_modes
- [4] u16 minimum supported network protocol version
- [6] u16 maximum supported network protocol version
- [8] std::string player name
+ u8 serialisation version (=SER_FMT_VER_HIGHEST_READ)
+ u16 supported network compression modes
+ u16 minimum supported network protocol version
+ u16 maximum supported network protocol version
+ std::string player name
*/
TOSERVER_INIT_LEGACY = 0x10,
@@ -936,7 +938,7 @@ enum AccessDeniedCode {
};
enum NetProtoCompressionMode {
- NETPROTO_COMPRESSION_ZLIB = 0,
+ NETPROTO_COMPRESSION_NONE = 0,
};
const static std::string accessDeniedStrings[SERVER_ACCESSDENIED_MAX] = {