00001 /* 00002 Free Download Manager Copyright (c) 2003-2007 FreeDownloadManager.ORG 00003 */ 00004 00005 #if !defined(AFX_FSSERVERCONNECTION_H__0CD5653D_2D57_4456_B496_204556B72225__INCLUDED_) 00006 #define AFX_FSSERVERCONNECTION_H__0CD5653D_2D57_4456_B496_204556B72225__INCLUDED_ 00007 00008 #if _MSC_VER > 1000 00009 #pragma once 00010 #endif 00011 00012 #include <windows.h> 00013 #include <wininet.h> 00014 #include "fsinet.h" 00015 #include <fsString.h> 00016 #include "fsSpeaking.h" 00017 00018 class fsInternetServerConnection : public fsSpeaking 00019 { 00020 public: 00021 00022 INTERNET_PORT GetServerPort(); 00023 00024 LPCSTR GetServerName(); 00025 00026 00027 class fsInternetSession* GetSession(); 00028 00029 void CloseHandle(); 00030 00031 LPCSTR GetLastError (); 00032 00033 00034 00035 00036 virtual fsInternetResult Connect (LPCSTR pszServer, LPCSTR pszUser, LPCSTR pszPassword, INTERNET_PORT nPort) = NULL; 00037 00038 00039 fsInternetResult Initialize (class fsInternetSession *pSession); 00040 00041 HINTERNET GetHandle(); 00042 fsInternetServerConnection(); 00043 virtual ~fsInternetServerConnection(); 00044 00045 protected: 00046 INTERNET_PORT m_uPort; 00047 fsString m_strServer; 00048 char *m_pszLastError; 00049 HINTERNET m_hServer; 00050 class fsInternetSession* m_pSession; 00051 }; 00052 00053 #endif
1.5.6