コード例 #1
0
        private FtpStatusCode m_StatusCode = 0;                 // ftp status code

        // Methods
        internal FtpListenerResponse(FtpListenerRequest request, IDataManager sender)
        {
            if (request.Method == WebRequestMethods.Ftp.DownloadFile || request.Method == WebRequestMethods.Ftp.ListDirectory || request.Method == WebRequestMethods.Ftp.ListDirectoryDetails)
            {
                m_NeedStream = true;
                m_NeedInputStream = true;
            }
            if (request.Method == WebRequestMethods.Ftp.GetFileSize)
            {
                m_NeedInputStream = true;
            }
            m_ResponseManager = sender;
            m_Request = request;
        }
コード例 #2
0
        private FtpStatusCode m_StatusCode      = 0;            // ftp status code

        // Methods
        internal FtpListenerResponse(FtpListenerRequest request, IDataManager sender)
        {
            if (request.Method == WebRequestMethods.Ftp.DownloadFile || request.Method == WebRequestMethods.Ftp.ListDirectory || request.Method == WebRequestMethods.Ftp.ListDirectoryDetails)
            {
                m_NeedStream      = true;
                m_NeedInputStream = true;
            }
            if (request.Method == WebRequestMethods.Ftp.GetFileSize)
            {
                m_NeedInputStream = true;
            }
            m_ResponseManager = sender;
            m_Request         = request;
        }
コード例 #3
0
        private FtpListenerSession m_Session = null;                    // reference back to the session it belongs to

        // Methods
        internal FtpListenerContext(FtpListenerSession session, FtpListenerRequest request)
        {
            m_ResponseToClient = new FtpListenerResponse(request, session);
            m_ClientRequest = request;
            m_Session = session;
        }
コード例 #4
0
        private FtpListenerSession m_Session = null;                    // reference back to the session it belongs to

        // Methods
        internal FtpListenerContext(FtpListenerSession session, FtpListenerRequest request)
        {
            m_ResponseToClient = new FtpListenerResponse(request, session);
            m_ClientRequest    = request;
            m_Session          = session;
        }