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

📄 kadfile.h

📁 Kademlia---第第3代P2P原代码
💻 H
字号:
#pragma once

#include "stdafx.h"
#include "../utils/UInt128.h"
#include <vector>

namespace Kademlia {

struct CKadFile{
	CUInt128 hash;
	CString  name;
	uint32   size;
	int      type;

	uint32   tth[2];

	CKadFile(const CKadFile& file)
	{
		hash = file.hash;
		name = file.name;
		size = file.size;
		type = file.type;

		tth[0] = file.tth[0];
		tth[1] = file.tth[1];
	}

	CKadFile(const byte* _hash, const char* _name = "", uint32 _size = 0, byte _type = 0) :
		hash(_hash), name(_name), size(_size), type(_type)
	{
		memcpy(tth, _hash + 16, sizeof(tth));
	}

};

typedef std::vector<CKadFile> FileList;
}

⌨️ 快捷键说明

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