Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing with 448 additions and 70 deletions.
- +3 −1 src/client.h
- +6 −0 src/clientiface.h
- +3 −3 src/network/clientopcodes.cpp
- +25 −9 src/network/networkprotocol.h
- +52 −6 src/network/packethandlers/client.cpp
- +314 −34 src/network/packethandlers/server.cpp
- +6 −6 src/network/serveropcodes.cpp
- +1 −1 src/script/lua_api/l_server.cpp
- +31 −7 src/server.cpp
- +7 −3 src/server.h
Oops, something went wrong.