]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/clientserver.h
Merge pull request #47 from MarkTraceur/master
[dragonfireclient.git] / src / clientserver.h
index 256aed362779b0da8ae5176359d724d61ff86c68..4981b7ea8c845f7ff4fe75c54fa78aa89787e9ce 100644 (file)
@@ -24,6 +24,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 
 #define PROTOCOL_ID 0x4f457403
 
+#define PASSWORD_SIZE 28       // Maximum password length. Allows for
+                               // base64-encoded SHA-1 (27+\0).
+
 enum ToClientCommand
 {
        TOCLIENT_INIT = 0x10,
@@ -34,7 +37,7 @@ enum ToClientCommand
                [0] u16 TOSERVER_INIT
                [2] u8 deployed version
                [3] v3s16 player's position + v3f(0,BS/2,0) floatToInt'd 
-               ([4] u64 map seed (new as of 2011-02-27))
+               [12] u64 map seed (new as of 2011-02-27)
 
                NOTE: The position in here is deprecated; position is
                      explicitly sent afterwards
@@ -154,6 +157,8 @@ enum ToClientCommand
        TOCLIENT_ACCESS_DENIED = 0x35,
        /*
                u16 command
+               u16 reason_length
+               wstring reason
        */
 };
 
@@ -166,7 +171,8 @@ enum ToServerCommand
                [0] u16 TOSERVER_INIT
                [2] u8 SER_FMT_VER_HIGHEST
                [3] u8[20] player_name
-               [23] u8[28] password
+               [23] u8[28] password (new in some version)
+               [51] u16 client network protocol version (new in some version)
        */
 
        TOSERVER_INIT2 = 0x11,