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_FSINTERNETURLSERVER_H__8100FC18_F1BF_4F7F_B866_0CB57B83B9DD__INCLUDED_) 00007 #define AFX_FSINTERNETURLSERVER_H__8100FC18_F1BF_4F7F_B866_0CB57B83B9DD__INCLUDED_ 00008 00009 #include "fsinet.h" 00010 #include "fsURL.h" 00011 #include "fsFtpConnection.h" 00012 #include "fsHttpConnection.h" 00013 #if _MSC_VER > 1000 00014 #pragma once 00015 #endif 00016 00017 class fsInternetURLServer 00018 { 00019 public: 00020 00021 fsInternetResult Connect (LPCSTR pszUrl, LPCSTR pszUser, LPCSTR pszPassword, INTERNET_PORT nPort); 00022 void CloseHandle(); 00023 INTERNET_PORT GetServerPort(); 00024 LPCSTR GetServerName(); 00025 HINTERNET GetHandle(); 00026 fsInternetResult Initialize (fsInternetSession* pSession); 00027 00028 00029 void UseFtpPassiveMode (BOOL bUse); 00030 00031 INTERNET_SCHEME GetScheme(); 00032 00033 BOOL IsHttpsServer(); 00034 00035 BOOL IsFtpServer(); 00036 00037 BOOL IsHttpServer(); 00038 00039 fsFtpConnection* GetFtpServer(); 00040 00041 fsHttpConnection* GetHttpServer(); 00042 00043 fsInternetURLServer(); 00044 virtual ~fsInternetURLServer(); 00045 00046 protected: 00047 INTERNET_SCHEME m_scheme; 00048 fsInternetServerConnection* m_pServer; 00049 fsHttpConnection m_httpServer; 00050 fsFtpConnection m_ftpServer; 00051 }; 00052 00053 #endif
1.5.6