www.pudn.com > simplec++codeforp2p.rar > id.h


#ifndef _ID_H
#define _ID_H

#include 

// ---------------------------------------------------
class IDString
{
private:
	enum
	{
		LENGTH = 31
	};

	char data[LENGTH+1];
public:
	IDString(const char *id,int cnt)
	{
		if (cnt >= LENGTH)
			cnt=LENGTH;
		int i;
		for(i=0; i