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_VMSHTTPRESPONSE_H__B1739215_2E5D_465A_B436_CF3F15A6775E__INCLUDED_) 00007 #define AFX_VMSHTTPRESPONSE_H__B1739215_2E5D_465A_B436_CF3F15A6775E__INCLUDED_ 00008 00009 #if _MSC_VER > 1000 00010 #pragma once 00011 #endif 00012 00013 #include <winsock.h> 00014 #include <string> 00015 00016 class vmsHttpResponse 00017 { 00018 public: 00019 00020 void set_HttpVersion (LPCSTR psz); 00021 00022 void set_ResponseCode (LPCSTR psz); 00023 00024 void set_Body (LPCVOID pv, DWORD dwSize); 00025 00026 BOOL Send (SOCKET sConnection); 00027 00028 vmsHttpResponse(); 00029 virtual ~vmsHttpResponse(); 00030 00031 protected: 00032 std::string m_strHttpVersion; 00033 std::string m_strResponseCode; 00034 LPVOID m_pBody; 00035 DWORD m_dwBodySize; 00036 }; 00037 00038 #endif
1.5.6