| 20 |
|
|
| 21 |
#include <stddef.h> |
#include <stddef.h> |
| 22 |
|
|
| 23 |
#define LINE_BUFFER_LEN 256 |
#define LINE_BUFFER_LEN 1024 |
| 24 |
#define FILE_PATH_LEN 1024 |
#define FILE_PATH_LEN 4096 |
| 25 |
|
#define MAX_FILE_LINES 65536 |
| 26 |
|
|
| 27 |
// Version |
// Version |
| 28 |
extern char app_version[256]; |
extern char app_version[256]; |
| 29 |
|
|
| 30 |
// Enviroment |
// Enviroment |
| 31 |
extern char app_home_dir[256]; |
#define CONF_BBSNET "conf/bbsnet.conf" |
| 32 |
extern char app_temp_dir[256]; |
|
| 33 |
|
#define LOG_FILE_INFO "log/bbsd.log" |
| 34 |
|
#define LOG_FILE_ERROR "log/error.log" |
| 35 |
|
|
| 36 |
|
#define DATA_WELCOME "data/welcome.txt" |
| 37 |
|
#define DATA_REGISTER "data/register.txt" |
| 38 |
|
#define DATA_GOODBYE "data/goodbye.txt" |
| 39 |
|
#define DATA_LICENSE "data/license.txt" |
| 40 |
|
#define DATA_COPYRIGHT "data/copyright.txt" |
| 41 |
|
#define DATA_LOGIN_ERROR "data/login_error.txt" |
| 42 |
|
#define DATA_ACTIVE_BOARD "data/active_board.txt" |
| 43 |
|
#define DATA_READ_HELP "data/read_help.txt" |
| 44 |
|
|
| 45 |
|
#define VAR_MAX_USER_ONLINE "var/max_user_online.dat" |
| 46 |
|
|
| 47 |
// Network |
// Network |
| 48 |
extern int socket_server; |
extern int socket_server; |