httpdownloadsocket.h
来自「wisock应用队列思想实现单线程多任务http下载的类. 实现多文件同时下载」· C头文件 代码 · 共 24 行
H
24 行
#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 + =
减小字号Ctrl + -
显示快捷键?