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