?? hhttp.h
字號:
// HHttp.h: interface for the CHHttp class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_HHTTPCONNECT_H__1D547E36_F258_4E5F_96C5_73235588C580__INCLUDED_)
#define AFX_HHTTPCONNECT_H__1D547E36_F258_4E5F_96C5_73235588C580__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
//文件名 : HHttp.h
//功能 : 簡單的HTTP
//創建 : 2004.4.8
//作者 : 韓國靜
//
#include "HTcpSock.h"
#include "HStdFile.h"
class CHHttp
{
int m_Port;
UNI_DWORD m_IP;
static char m_szBaseHead[];
static char m_szHttpVer[];
public:
static UNI_DWORD ParseURL(char *url,UNI_WORD &wPort);
//返回頭信息大小
int Head(char *url,char *headBuf, int bufLen);
void SetHost(UNI_DWORD dwIP,UNI_WORD Port);
BOOL Get(char *url,char *saveFile);
CHHttp();
virtual ~CHHttp();
protected:
int FindDoubleLf(char *pBuf,int bufLen);
//返回文件大小
int HttpRecvFile(char *recvBuf,int bufLen ,char *fileName, CHTcpSock &s);
private:
int GetFileLen(char *head);
};
#endif // !defined(AFX_HHTTPCONNECT_H__1D547E36_F258_4E5F_96C5_73235588C580__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -