⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 httpdownloadsocket.h

📁 wisock应用队列思想实现单线程多任务http下载的类. 实现多文件同时下载,断点续传,流量统计等.
💻 H
字号:
#pragma once
#include "downloadsocket.h"
#include "struct.h"
#include "stateCode.h"

class CHttpDownloadSocket :	public CDownloadSocket
{
public:
	CHttpDownloadSocket(void);
	virtual ~CHttpDownloadSocket(void);

	void Login();
	void SetOffset(int offset) ;
	virtual int SendRequest(LPTSTR buf,UINT begin = 0,UINT end = 0);
	virtual int RecvData(LPTSTR buf);//得到文件数据,放在buf里
	virtual void CloseSocket();
	virtual UINT GetContentLen(LPCTSTR buf);

	UINT GetHeaderLen(LPCTSTR buf);
	virtual void IgnoreIpHeader(LPTSTR buf);
	
	virtual RESPONSECODE GetResponse(LPCTSTR buf);
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -