Пример #1
0
        private void sendClientDH(NetworkIOArgs args)
        {
            this.sendstate = Esend.SENDCHALLENGE;
            //this.client.Recv(this.buffer, 0, 2);

            this.client.RecvPackage();
        }
Пример #2
0
 public NetworkLogin()
 {
     client = new NetworkClient();
     //this.recvState = Erecv.RECVCHANLLENGECOUNT;
     this.recvState = Erecv.RECVCHALLENGE;
     this.sendstate = Esend.SENDCLIENTDH;
     buffer         = new byte[BUFFERSIZE];
 }
Пример #3
0
 private void sendChallenge(NetworkIOArgs args)
 {
     this.client.SendPackage(Convert.ToBase64String(kcrypt.DesEncrypt(Encoding.UTF8.GetBytes(this.token))));
     this.sendstate = Esend.SENDTOKEN;
 }