/[LeafOK_CVS]/lbbs/include/common.h
ViewVC logotype

Diff of /lbbs/include/common.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.40 by sysadm, Thu Jun 5 05:24:55 2025 UTC Revision 1.43 by sysadm, Wed Jun 18 04:19:44 2025 UTC
# Line 19  Line 19 
19    
20  #include <stddef.h>  #include <stddef.h>
21  #include <libssh/libssh.h>  #include <libssh/libssh.h>
22    #include <libssh/server.h>
23    
24  #define LINE_BUFFER_LEN 1024  #define LINE_BUFFER_LEN 1024
25  #define FILE_PATH_LEN 4096  #define FILE_PATH_LEN 4096
26    
27  // Version  // Version
28  #define APP_NAME_VER "LBBS-devel version 1.0"  #define APP_NAME "LBBS"
29    #define APP_VER "1.1.0"
30    #define APP_INFO (APP_NAME " version " APP_VER " build on " __DATE__ " " __TIME__)
31    
32  // Enviroment  // Enviroment
33  #define CONF_BBSD "conf/bbsd.conf"  #define CONF_BBSD "conf/bbsd.conf"
# Line 44  Line 47 
47  #define DATA_ACTIVE_BOARD "data/active_board.txt"  #define DATA_ACTIVE_BOARD "data/active_board.txt"
48  #define DATA_READ_HELP "data/read_help.txt"  #define DATA_READ_HELP "data/read_help.txt"
49    
 #define VAR_MAX_USER_ONLINE "var/max_user_online.dat"  
50  #define VAR_BBS_TOP "var/bbs_top.txt"  #define VAR_BBS_TOP "var/bbs_top.txt"
51    
52  #define VAR_ARTICLE_BLOCK_SHM "var/article_block_shm.~"  #define VAR_ARTICLE_BLOCK_SHM "var/article_block_shm.~"
# Line 56  Line 58 
58  // File loader  // File loader
59  extern const char *data_files_load_startup[];  extern const char *data_files_load_startup[];
60  extern int data_files_load_startup_count;  extern int data_files_load_startup_count;
 extern const char *data_files_load_on_timeval[];  
 extern int data_files_load_timeval_count;  
61    
62  // Screen  // Screen
63  #define SCREEN_ROWS 24  #define SCREEN_ROWS 24
# Line 72  extern int data_files_load_timeval_count Line 72  extern int data_files_load_timeval_count
72  // User  // User
73  #define BBS_MAX_USER_LIMIT 100000  #define BBS_MAX_USER_LIMIT 100000
74    
75  extern int socket_server;  extern int socket_server[2];
76  extern int socket_client;  extern int socket_client;
 extern char hostaddr_server[IP_ADDR_LEN];  
77  extern char hostaddr_client[IP_ADDR_LEN];  extern char hostaddr_client[IP_ADDR_LEN];
 extern int port_server;  
78  extern int port_client;  extern int port_client;
79    
80  // SSHv2  // SSHv2
81  extern int SSH_v2;  extern int SSH_v2;
82    extern ssh_bind sshbind;
83  extern ssh_session SSH_session;  extern ssh_session SSH_session;
84  extern ssh_channel SSH_channel;  extern ssh_channel SSH_channel;
85    


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1