bt.h

来自「模拟P2P各种网络环境的,适合新手们的学习,不错的源码.」· C头文件 代码 · 共 33 行

H
33
字号
#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 + =
减小字号Ctrl + -
显示快捷键?