예제 #1
0
 /// <summary>
 /// Initializes the RC4 encryption instance of this connection with a given public key.
 /// </summary>
 /// <param name="Key">The public key to set.</param>
 public void initializeEncryption(string Key)
 {
     this.encryptionClient = new rc4Provider(Key);
 }
예제 #2
0
 public TcpProxy(bool incoming)
 {
     this._mainSocket  = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
     this._incoming    = incoming;
     this._rc4Provider = null;
 }