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

📄 netflowrecoder.h

📁 wisock应用队列思想实现单线程多任务http下载的类. 实现多文件同时下载,断点续传,流量统计等.
💻 H
字号:
#pragma once
#include <windows.h>
class CNetFlowRecoder
{
public:
	static CNetFlowRecoder* GetInstance();
	void RefreshFlow(UINT increase);
	void AddTotalFlow(UINT increase);//
	void RefreshSpeed();

	UINT GetCompletedFlow();
	UINT GetCurSpeed();
	float GetCurPersentage();
	bool IsCompleted();

	bool m_isBegin;

//private:
	int m_iFlowRecoder;
	int m_iTotalFlow;//所有任务的下载总和
	int m_iNetRate;//下载速率
	float m_iPersentage;//完成的百分比

	CNetFlowRecoder(void);
	~CNetFlowRecoder(void);
};

⌨️ 快捷键说明

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