示例#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;
        }
示例#2
0
 public void SetEncryption(string sPublicKey)
 {
     mRc4 = new HabboHexRC4(sPublicKey);
     mEncryptionStarted = true;
 }