mirror of
https://github.com/sebastian-heinz/mhf-server.git
synced 2025-04-03 13:28:30 +08:00
28 lines
823 B
C#
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);
|
|
}
|
|
};
|
|
}
|