#ifndef O2ON_DEFINE_H_INCLUDED
#define O2ON_DEFINE_H_INCLUDED

#define O2ON_VER_INFO			"o2on mod alpha 0.2 test (" __DATE__ ")"

//#define PROTO_VER_MAJOR			0
//#define PROTO_VER_MINOR			1

#define NODE_ENC_KEY			"222nullpo"

//#define SITE_NAME_LEN			32
//#define CATEGORY_NAME_LEN		32
//#define BOARD_NAME_LEN			32
//#define NODE_NAME_LEN			64

#define DATDIR					"dat"

//enum {
//	P2P_TYPE_NONE,
//	P2P_TYPE_ASKMYIP,
//	P2P_TYPE_GETKEY,
//	P2P_TYPE_GETYOURKEY,
//	P2P_TYPE_GETPROFILE,
//	P2P_TYPE_SENDMES
//};

struct Node {
	unsigned long	ip;
	unsigned short	port;
};
inline bool operator<(const Node& lhs, const Node& rhs) {
	return lhs.ip < rhs.ip;
}
inline bool operator==(const Node& lhs, const Node& rhs) {
	return lhs.ip == rhs.ip;
}

//struct NodeInfo {
//	Node			node;
//	char			name[NODE_NAME_LEN];
//};

#endif /* O2ON_DEFINE_H_INCLUDED */
