00001 /* 00002 Free Download Manager Copyright (c) 2003-2007 FreeDownloadManager.ORG 00003 Open Download Manager Copyright (c) 2008 OpenDownloadManager.ORG 00004 */ 00005 00006 #if !defined(AFX_VMSHTTPCONNECTION_H__BFFC75EC_1905_42F5_9C8C_2E44DCAB84B9__INCLUDED_) 00007 #define AFX_VMSHTTPCONNECTION_H__BFFC75EC_1905_42F5_9C8C_2E44DCAB84B9__INCLUDED_ 00008 00009 #if _MSC_VER > 1000 00010 #pragma once 00011 #endif 00012 00013 #include <winsock.h> 00014 #include "vmsHttpRequest.h" 00015 00016 class vmsHttpServer; 00017 00018 class vmsHttpConnection 00019 { 00020 public: 00021 00022 void Attach (SOCKET sConnection); 00023 00024 void Shutdown(); 00025 00026 vmsHttpConnection(vmsHttpServer* pServer); 00027 virtual ~vmsHttpConnection(); 00028 00029 protected: 00030 00031 vmsHttpRequest m_request; 00032 00033 00034 static DWORD WINAPI _threadConnection (LPVOID lp); 00035 00036 SOCKET m_sConnection; 00037 00038 vmsHttpServer* m_pServer; 00039 }; 00040 00041 #endif
1.5.6