00001
00010 #ifndef DEFINES_H_
00011 #define DEFINES_H_
00012
00013 #define ERROR_VAL -1
00014 #define ALL_GOES_WELL 0
00015
00016
00017 #define MAX_LOGIN_LEN 26
00018 #define MAX_PASS_LEN 26
00019 #define MAX_SESSINON_ID sizeof(long int) * 4 + 2
00020 #define MAX_MESSAGE_LEN 1024
00021 #define TIMEOUT 60
00022 #define HASHBASE 127
00023 #define OK_STATUS 1
00024 #define EXIT_STATUS 0
00025 #define MAX_IP_LEN 15
00026 #define MIN_IP_LEN 7
00027 #define MAX_FOLDER_LIST_LEN 1024
00028 #define MAX_LOGIN_LIST_LEN 512
00029
00030
00031 #define LISTENING 0
00032 #define LOGIN 1
00033 #define PASSWORD 2
00034 #define AUTORIZACAO 3
00035 #define LOGOUT 4
00036 #define EXIT 5
00037 #define HACK 6
00038
00039
00040 typedef struct timespec t_timespec;
00041 typedef struct sigaction t_sigaction;
00042 typedef struct gengetopt_args_info t_gen_args;
00043
00044 #endif