//---------------------------------------- //simply reset data connection internal void Reset() { FtpDataConnection curDC = _currentDC; if (null != curDC) { curDC.Abort(); } }
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(); } }