示例#1
0
        public void RefreshResponse()
        {
            lock (this)
            {
                m_lastResponse = new Response(m_connection.GetStream());
            }

            foreach (string s in m_lastResponse.Respones)
            {
                m_sessionHost.OnResponseReceived(s);
            }
        }
示例#2
0
文件: Exception.cs 项目: avs009/gsf
 internal CommandException(string message, Response ftpResponse)
     : base(message, ftpResponse)
 {
 }
示例#3
0
        internal void Connect()
        {
            m_connection.Connect(m_server, m_port);

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

                if (m_lastResponse.Code != Response.ServiceReady)
                    throw new ServerDownException("FTP service unavailable.", m_lastResponse);
            }
            catch
            {
                Close();
                throw;
            }
        }
示例#4
0
文件: Exception.cs 项目: avs009/gsf
 internal ServerDownException(Response ftpResponse)
     : this("FTP service was down.", ftpResponse)
 {
 }
示例#5
0
文件: Exception.cs 项目: avs009/gsf
 internal ServerDownException(string message, Response ftpResponse)
     : base(message, ftpResponse)
 {
 }
示例#6
0
文件: Exception.cs 项目: avs009/gsf
 internal AuthenticationException(string message, Response ftpResponse)
     : base(message, ftpResponse)
 {
 }
示例#7
0
文件: Exception.cs 项目: avs009/gsf
 internal InvalidResponseException(string message, Response ftpResponse)
     : base(message, ftpResponse)
 {
 }
示例#8
0
文件: Exception.cs 项目: avs009/gsf
 internal ExceptionBase(string message, Response ftpResponse)
     : base(message)
 {
     m_ftpResponse = ftpResponse;
 }
示例#9
0
文件: Exception.cs 项目: avs009/gsf
 internal ResumeNotSupportedException(Response ftpResponse)
     : base("Data transfer error: server does not support resuming.", ftpResponse)
 {
 }
示例#10
0
文件: Exception.cs 项目: avs009/gsf
 internal DataTransferException(string message, Response ftpResponse)
     : base(message, ftpResponse)
 {
 }