예제 #1
0
 internal Cmd_GetDataConnection(FtpClient ftp)
 {
     _cc          = ftp.ControlConnection;
     _passiveMode = ftp.PassiveMode;
     _encoding    = ftp.UsedEncoding;
     _client      = ftp;
 }
예제 #2
0
        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));
        }
예제 #3
0
 internal Cmd_Reset(FtpClient ftp)
 {
     _client = ftp;
     _cc     = ftp.ControlConnection;
 }
예제 #4
0
 internal Cmd_Login(FtpClient ftp)
 {
     _client = ftp;
     _cc     = ftp.ControlConnection;
 }
예제 #5
0
 internal Cmd_Single(FtpClient ftp)
 {
     _client = ftp;
     _cc     = ftp.ControlConnection;
 }