コード例 #1
0
ファイル: FtpExceptions.cs プロジェクト: avs009/gsf
 internal FtpServerDownException(FtpResponse ftpResponse)
     : this("FTP service was down.", ftpResponse)
 {
 }
コード例 #2
0
ファイル: FtpExceptions.cs プロジェクト: avs009/gsf
 internal FtpInvalidResponseException(string message, FtpResponse ftpResponse)
     : base(message, ftpResponse)
 {
 }
コード例 #3
0
ファイル: FtpExceptions.cs プロジェクト: avs009/gsf
 internal FtpAuthenticationException(string message, FtpResponse ftpResponse)
     : base(message, ftpResponse)
 {
 }
コード例 #4
0
ファイル: FtpExceptions.cs プロジェクト: avs009/gsf
 internal FtpResumeNotSupportedException(FtpResponse ftpResponse)
     : base("Data transfer error: server does not support resuming.", ftpResponse)
 {
 }
コード例 #5
0
ファイル: FtpExceptions.cs プロジェクト: avs009/gsf
 internal FtpExceptionBase(string message, FtpResponse ftpResponse)
     : base(message)
 {
     m_ftpResponse = ftpResponse;
 }
コード例 #6
0
ファイル: FtpExceptions.cs プロジェクト: avs009/gsf
 internal FtpDataTransferException(string message, FtpResponse ftpResponse)
     : base(message, ftpResponse)
 {
 }
コード例 #7
0
ファイル: FtpExceptions.cs プロジェクト: avs009/gsf
 internal FtpCommandException(string message, FtpResponse ftpResponse)
     : base(message, ftpResponse)
 {
 }
コード例 #8
0
ファイル: FtpExceptions.cs プロジェクト: avs009/gsf
 internal FtpServerDownException(string message, FtpResponse ftpResponse)
     : base(message, ftpResponse)
 {
 }
コード例 #9
0
ファイル: FtpControlChannel.cs プロジェクト: avs009/gsf
        /// <summary>
        /// Refresh response from control channel.
        /// </summary>
        public void RefreshResponse()
        {
            lock (this)
            {
                m_lastResponse = new FtpResponse(m_connection.GetStream());
            }

            foreach (string s in m_lastResponse.Respones)
            {
                m_sessionHost.OnResponseReceived(s);
            }
        }
コード例 #10
0
ファイル: FtpControlChannel.cs プロジェクト: avs009/gsf
        internal void Connect()
        {
            m_connection.Connect(m_server, m_port);

            try
            {
                m_lastResponse = new FtpResponse(m_connection.GetStream());

                if (m_lastResponse.Code != FtpResponse.ServiceReady)
                    throw new FtpServerDownException("FTP service unavailable.", m_lastResponse);
            }
            catch
            {
                Close();
                throw;
            }
        }