Esempio n. 1
0
 private bool HandleAuthentification(byte[] packet)
 {
     AuthRes res = new AuthRes();
     _tcpClient.ToStructure(packet, ref res);
     _gui.Login(res.result == AuthResult.AUR_OK);
     if(res.result == AuthResult.AUR_OK)
         _gui.MainWindow.SetSessionId(Convert.ToString(res.header.sessionHash));
     return true;
 }
Esempio n. 2
0
        private bool HandleAuthentification(byte[] packet)
        {
            AuthRes res = new AuthRes();

            _tcpClient.ToStructure(packet, ref res);
            _gui.Login(res.result == AuthResult.AUR_OK);
            if (res.result == AuthResult.AUR_OK)
            {
                _gui.MainWindow.SetSessionId(Convert.ToString(res.header.sessionHash));
            }
            return(true);
        }