From 9e362311019aed9d2c4a21753a3019daf842b8d0 Mon Sep 17 00:00:00 2001 From: Justin T <37750742+jtieri@users.noreply.github.com> Date: Mon, 9 Dec 2019 21:19:20 -0600 Subject: [PATCH] WIP: handle handshake packets progress on handling the incoming handshake packets. mapping out a lot of crypto packets that i won't implement till later --- .../protocol/handlers/handshake_handlers.go | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 habbgo/server/protocol/handlers/handshake_handlers.go diff --git a/habbgo/server/protocol/handlers/handshake_handlers.go b/habbgo/server/protocol/handlers/handshake_handlers.go new file mode 100644 index 0000000..23ab237 --- /dev/null +++ b/habbgo/server/protocol/handlers/handshake_handlers.go @@ -0,0 +1,28 @@ +package handlers + +import ( + "github.com/jtieri/HabbGo/habbgo/game/model/player" + "github.com/jtieri/HabbGo/habbgo/server/protocol/composers" + "github.com/jtieri/HabbGo/habbgo/server/protocol/packets" +) + +func HandleInitCrypto(player *player.Player, packet *packets.IncomingPacket) { + player.Session.Send(composers.ComposeCryptoParams()) +} + +func HandleGenerateKey(player *player.Player, packet *packets.IncomingPacket) { + // TODO send + player.Session.Send(composers.ComposeEndCrypto()) +} + +func HandleGetSessionParams(player *player.Player, packet *packets.IncomingPacket) { + player.Session.Send(composers.ComposeSessionParams()) +} + +func HandleSSO(player *player.Player, packet *packets.IncomingPacket) { + +} + +func HandleTryLogin(player *player.Player, packet *packets.IncomingPacket) { + +}