internal Cmd_GetDataConnection(FtpClient ftp) { _cc = ftp.ControlConnection; _passiveMode = ftp.PassiveMode; _encoding = ftp.UsedEncoding; _client = ftp; }
internal Cmd_PutFileUnique(FtpClient ftp, Regex regEx) { _client = ftp; _cc = _client.ControlConnection; //--------------------------------- //place user defined reg ex //at the beginning if (null != regEx) { _nameRegEx.Add(regEx); } _nameRegEx.Add(new Regex("^150[- ]FILE: *(?<name>.*)\r\n$", RegexOptions.IgnoreCase | RegexOptions.Compiled)); _nameRegEx.Add(new Regex("^150[- ]Opening BINARY mode data connection for *(?<name>.*)\r\n$", RegexOptions.IgnoreCase | RegexOptions.Compiled)); }
internal Cmd_Reset(FtpClient ftp) { _client = ftp; _cc = ftp.ControlConnection; }
internal Cmd_Login(FtpClient ftp) { _client = ftp; _cc = ftp.ControlConnection; }
internal Cmd_Single(FtpClient ftp) { _client = ftp; _cc = ftp.ControlConnection; }