diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-11-26 23:58:27 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-11-29 22:08:25 +0200 |
commit | 8ccdd3bdb43b313d729279dbbb267528fc191615 (patch) | |
tree | 533a1c7f80e3b6d6b7aa806c0292d0e9df193893 /src/clientserver.h | |
parent | 23913f26cd0a075505b7e74df6b93584288afb92 (diff) | |
download | minetest-8ccdd3bdb43b313d729279dbbb267528fc191615.tar.gz minetest-8ccdd3bdb43b313d729279dbbb267528fc191615.tar.bz2 minetest-8ccdd3bdb43b313d729279dbbb267528fc191615.zip |
Ranged support of protocol version on server side
Diffstat (limited to 'src/clientserver.h')
-rw-r--r-- | src/clientserver.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/clientserver.h b/src/clientserver.h index 6d4998550..d77772416 100644 --- a/src/clientserver.h +++ b/src/clientserver.h @@ -75,14 +75,19 @@ SharedBuffer<u8> makePacket_TOCLIENT_TIME_OF_DAY(u16 time, float time_speed); GENERIC_CMD_SET_ANIMATION GENERIC_CMD_SET_BONE_POSITION GENERIC_CMD_SET_ATTACHMENT + PROTOCOL_VERSION 15: + Serialization format changes */ -// Server always only supports one version -#define SERVER_PROTOCOL_VERSION 14 +#define LATEST_PROTOCOL_VERSION 15 -// Client can support older versions too +// Server's supported network protocol range +#define SERVER_PROTOCOL_VERSION_MIN 14 +#define SERVER_PROTOCOL_VERSION_MAX LATEST_PROTOCOL_VERSION + +// Client's supported network protocol range #define CLIENT_PROTOCOL_VERSION_MIN 13 -#define CLIENT_PROTOCOL_VERSION_MAX SERVER_PROTOCOL_VERSION +#define CLIENT_PROTOCOL_VERSION_MAX LATEST_PROTOCOL_VERSION // Constant that differentiates the protocol from random data and other protocols #define PROTOCOL_ID 0x4f457403 |