示例#1
0
        public void InitializeNetwork()
        {
            RsaPair     = ClientManager.Instance.GetScrambledKeyPair();
            BlowfishKey = ClientManager.Instance.GetBlowfishKey();
            _loginCrypt = new LoginCrypt();
            _loginCrypt.UpdateKey(BlowfishKey);

            new Thread(Read).Start();
            new Thread(SendInit).Start();
        }
示例#2
0
        public void InitializeNetwork()
        {
            RsaPair     = _clientManager.GetScrambledKeyPair();
            BlowfishKey = _clientManager.GetBlowfishKey();

            _loginCrypt = new LoginCrypt();
            _loginCrypt.UpdateKey(BlowfishKey);

            Task.Factory.StartNew(ReadAsync);
            Task.Factory.StartNew(SendInit);
        }