Exemplo n.º 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);
            }
        }
Exemplo n.º 2
0
 internal CommandException(string message, Response ftpResponse)
     : base(message, ftpResponse)
 {
 }
Exemplo n.º 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;
            }
        }
Exemplo n.º 4
0
 internal ServerDownException(Response ftpResponse)
     : this("FTP service was down.", ftpResponse)
 {
 }
Exemplo n.º 5
0
 internal ServerDownException(string message, Response ftpResponse)
     : base(message, ftpResponse)
 {
 }
Exemplo n.º 6
0
 internal AuthenticationException(string message, Response ftpResponse)
     : base(message, ftpResponse)
 {
 }
Exemplo n.º 7
0
 internal InvalidResponseException(string message, Response ftpResponse)
     : base(message, ftpResponse)
 {
 }
Exemplo n.º 8
0
 internal ExceptionBase(string message, Response ftpResponse)
     : base(message)
 {
     m_ftpResponse = ftpResponse;
 }
Exemplo n.º 9
0
 internal ResumeNotSupportedException(Response ftpResponse)
     : base("Data transfer error: server does not support resuming.", ftpResponse)
 {
 }
Exemplo n.º 10
0
 internal DataTransferException(string message, Response ftpResponse)
     : base(message, ftpResponse)
 {
 }