Beispiel #1
0
        private void OnRecvRegister(IChannel channel, Message message)
        {
            //Console.WriteLine("register!");
            CRegister request = message as CRegister;

            ConnectDB connect = new ConnectDB();
            int       result  = connect.registerUser(request.user, request.password);

            if (result == 0)
            {
                ClientTipInfo(channel, "User Name Exist!");
            }
            else
            {
                ClientTipInfo(channel, "Welcome!");
            }
        }