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