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