Exemplo n.º 1
0
        /// <summary>
        /// Stops the connection, disconnects the socket and disposes used resources.
        /// </summary>
        public void Stop()
        {
            if (!this.Alive)
                return; // Already stopped

            mSocket.Close();
            mSocket = null;
            mDataBuffer = null;
            mDataReceivedCallback = null;
            mRc4 = null;
        }
Exemplo n.º 2
0
 public void SetEncryption(string sPublicKey)
 {
     mRc4 = new HabboHexRC4(sPublicKey);
     mEncryptionStarted = true;
 }