#define		MAX_CLIENTS        10


#define DB_IP   "127.0.0.1"
#define DB_USER "root"
#define DB_PASS ""
#define DB_NAME "dxsock"
#define DB_PORT 3306
#define	PORT    12345

#define	OPCODE_SIZE        3
#define	CODE_SIZE          3
#define	MSG_NUMB_SIZE      3
#define DATA_ONE_SIZE      10
#define PASS_SIZE          10

#define BUFFER_SIZE       2048
#define MYSQL_TEXT_SIZE   2048

#define FILE_NAME_SIZE 512
#define FILE_PATH_SIZE 1024
#define LENGHT_SIZE    5

#define EVENT_ID_SIZE 100

#define DX_CODE_ROK "ROK"
#define DX_CODE_RWR "RWR"
#define DX_CODE_RUK "RUK"

#define DX_CODE_AOK "AOK"
#define DX_CODE_AWR "AWR"
#define DX_CODE_AEX "AEX"
#define DX_CODE_AUK "AUK"

#define DX_CODE_ONL "ONL"
#define DX_CODE_OFF "OFF"

#define DX_OPCODE_NFR "NFR"
#define DX_OPCODE_NFF "NFF"
#define DX_OPCODE_REG "REG"
#define DX_OPCODE_IMS "IMS"
#define DX_OPCODE_AUC "AUC"
#define DX_OPCODE_BDL "BDL"
#define DX_OPCODE_SNT "SNT"
#define DX_OPCODE_FLT "FLT"
#define DX_OPCODE_IMG "IMG"

#define MORE_ROWS_OR_SEARCHED   0
#define NO_ROWS_OR_NOTSEARCHED  1
#define NO_RESULT_OR_SUCESS     2
#define NOT_EXECUTET_QUERY      3