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) { + +}