#ifndef __PROTOCOL_H__
#define __PROTOCOL_H__

#define MaxSizeOfServerName         32
#define MaxSizeOfServerAddr			64	
#define MaxSizeOfServerIp			64
#define MaxSizeOfServerPort         8
#define MaxSizeOfServerType         24
#define MaxSizeOfsmsStr		        1024

#define MAX_ALLOWED_DEAD_COUNT		1
#define ALLOWED_MAX_ERROR_COUNT		5
#define	SENDSMSTERM					5
#define MAXSENDSMSCOUNT				5
#define SERV_ALIVE		1
#define SERV_DEAD		2
#define NO_MONITOR		3

#define MYQUERY   "SELECT neo_seq, name, domain, dig_domain, ip, type, port, dead_count, status FROM t_neo_server_index WHERE monitor_yn ='Y' AND deleted_yn = 'N' ORDER BY neo_type ASC"

static int neo_serv_num = 0;

typedef struct _neo_serv_info {
	long neo_seq;
	char name[MaxSizeOfServerName];
	char domain[MaxSizeOfServerAddr];
	char dig_domain[MaxSizeOfServerAddr];
	char ipaddr[MaxSizeOfServerIp];
	char type[MaxSizeOfServerType];
	int port;
	int dead_count;
	int status;
	struct _neo_serv_info *next;
} neo_serv_info;

#endif
