Ejemplo n.º 1
0
        //----------------------------------------
        //simply reset data connection
        internal void Reset()
        {
            FtpDataConnection curDC = _currentDC;

            if (null != curDC)
            {
                curDC.Abort();
            }
        }
Ejemplo n.º 2
0
        internal void Abort()
        {
            //----------------------------------------
            //We need to hold this flag, because its
            //determine the behaviour at the last stage
            //(during reading responses after DTP).
            _aborted = true;

            //----------------------------------------
            //Abort data-connection manually...
            //We need to do it because not everybody
            //follow RFC. (RFC: server should close
            //data-connection in case of ABORT cmd)
            FtpDataConnection curDC = _currentDC;

            if (null != curDC)
            {
                curDC.Abort();
            }
        }