示例#1
0
    private void Register(NetIncomingMessage incmsg)
    {
        string name = incmsg.ReadString();
        string pass = incmsg.ReadString();
        string s    = serverCore.GetDataBase().Register(name, pass);

        NetOutgoingMessage outmsg = serverCore.CreateMessage();

        outmsg.Write((byte)PacketType.LogRegMsg);
        outmsg.Write(s);
        ServerPacketSender.SendMessageTo(outmsg, incmsg.SenderConnection);
    }