mhf-server/Mhf.Server/PacketHandler/MsgHeadHandler.cs
2019-11-24 19:43:35 +08:00

28 lines
823 B
C#

using Mhf.Server.Model;
using Mhf.Server.Packet;
using Mhf.Server.PacketResponses;
namespace Mhf.Server.PacketHandler
{
public class MsgHeadHandler : ConnectionHandler
{
public MsgHeadHandler(MhfServer server) : base(server)
{
}
public override ushort Id => (ushort) PacketId.MSG_HEAD;
public override void Handle(MhfConnection connection, MhfPacket packet)
{
string keySign = packet.Data.ReadCString();
string userId = packet.Data.ReadCString();
string sessionKey = packet.Data.ReadCString();
Logger.Info($"Auth Request: KeySign:{keySign} UserId:{userId} SessionKey:{sessionKey}");
MsgHeadResponse response = new MsgHeadResponse();
Router.Send(response, connection);
}
};
}