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

📄 hash.h

📁 linux 上http email 协议分析程序 主要能够处理大数据量的主干网的应用
💻 H
字号:
#ifndef _HASH_FILE_H
#define _HASH_FILE_H
#include <time.h>
#include <Mem.h>

#include "Stru.h"

class Chash_v
{
public:
	Chash_v(int ibasecount,int itotcount);
	~Chash_v();

	bool find(TUnit_v *aunit);
	bool add(TUnit_v *aunit);
	bool remove(TUnit_v *aunit);
	void clearMem(CMem *theMem);
	int clear(TUnit_v *punit,int maxunit);

private:
	int getPos(TKey &key);
	bool timeout();
	int m_ibasecount;
	int m_isparecount;

	CMem *m_theMem;
	void * *m_pbase;
	int m_iidlecount;

	time_t m_lctime;

};

#endif

⌨️ 快捷键说明

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