btgetrequest.cpp

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

CPP
23
字号
#include "BTGetRequest.h"
#include "BTSession.h"
BTGetRequest::BTGetRequest(string key, RequestType type, unsigned int  left,  BTSession* session){
		mDownloadHashKey = key;
		mType = type;
		mLeft = left;
		mSession = session;
};
/*
string BTGetRequest::toString(void){
	switch( mType ){
		case start:
			return "start";
		case complete:
			return "complete";
		case stop:
			return "strop";
		default
			return NULL;
	}
}
*/

⌨️ 快捷键说明

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