Example #1
0
        private void btnPasv_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            RscFtpClientCommand cmd = RscFtpClientCommand.EnterPassiveMode();

            _Log("21", cmd.ToString());

            m_ftpc.SendCommandToServer(cmd);
        }
Example #2
0
        //
        // //
        //

        private void _SendAutoPASV(RscFtpClientCommand cmd)
        {
            if (m_ftpc.AutoPassiveMode)
            {
                RscFtpClientCommand cmdPasv = RscFtpClientCommand.EnterPassiveMode();

                cmdPasv.Parent = cmd;

                _Log("21", "(auto-PASV) " + cmd.ToString());

                m_ftpc.SendCommandToServer(cmdPasv);
            }
            else
            {
                _Log("21", cmd.ToString());

                m_ftpc.SendCommandToServer(cmd);
            }
        }