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