00001 /* 00002 Free Download Manager Copyright (c) 2003-2007 FreeDownloadManager.ORG 00003 Open Download Manager Copyright (c) 2008-2010 OpenDownloadManager.ORG 00004 */ 00005 00006 #if !defined(AFX_FSFTPCONNECTION_H__7A93846D_5A0C_4B2F_B07E_765B21315FB7__INCLUDED_) 00007 #define AFX_FSFTPCONNECTION_H__7A93846D_5A0C_4B2F_B07E_765B21315FB7__INCLUDED_ 00008 00009 #if _MSC_VER > 1000 00010 #pragma once 00011 #endif 00012 00013 #include "fsServerConnection.h" 00014 #include "fsinet.h" 00015 00016 class fsFtpConnection : public fsInternetServerConnection 00017 { 00018 public: 00019 00020 fsInternetResult Connect (LPCSTR pszServer, LPCSTR pszUser, LPCSTR pszPassword, INTERNET_PORT nPort = INTERNET_DEFAULT_FTP_PORT); 00021 00022 void UsePassiveMode (BOOL bUse); 00023 00024 BOOL IsPassiveMode(); 00025 00026 fsInternetResult SetCurrentDirectory (LPCSTR pszDir); 00027 fsFtpConnection(); 00028 virtual ~fsFtpConnection(); 00029 00030 private: 00031 00032 protected: 00033 00034 00035 00036 void ReceiveExtError(); 00037 BOOL m_bPassiveMode; 00038 }; 00039 00040 #endif
1.5.6