Beispiel #1
0
        /// <summary>
        /// Closes the connection and reads the server's reply
        /// </summary>
        public override void Close()
        {
            base.Close();

            try {
                if (ControlConnection != null)
                {
                    ControlConnection.CloseDataStream(this);
                }
            }
            finally {
                m_commandStatus = new FtpReply();
                m_control       = null;
            }
        }
Beispiel #2
0
        /// <summary>
        /// Closes the connection and reads the server's reply
        /// </summary>
        public new FtpReply Close()
        {
            base.Close();

            try {
                if (ControlConnection != null)
                {
                    return(ControlConnection.CloseDataStream(this));
                }
            } finally {
                m_commandStatus = new FtpReply();
                m_control       = null;
            }

            return(new FtpReply());
        }