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

📄 bt.h

📁 模拟P2P各种网络环境的,适合新手们的学习,不错的源码.
💻 H
字号:
#ifndef __BT_H__
#define __BT_H__
#include <list>
#include <algorithm>
#include "Protocol.h"
using namespace std;
class BTPeer;
class BTTracker;
class BT:public Protocol{
public:
	list<BTPeer*> 	mEspList;
	BTTracker*		mTracker;
public:
	BT(void){}
	~BT(void){}
	void confAgent(void);
	void confDocument(void);
	void confEvents( void );
	int pick(void);
	void printEspInfo(void);
	bool ifEsp( BTPeer* peer){
		if( find( mEspList.begin(), mEspList.end(), peer) != mEspList.end())
			return true;
		else
			return false;
	}
	float getEspOutput(void);
	unsigned int getEspFileCon( string );
	
};
extern BT bt;
#endif

⌨️ 快捷键说明

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