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