/[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.42 by sysadm, Sat Jun 7 08:38:50 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
# Line 44  Line 45 
45  #define DATA_ACTIVE_BOARD "data/active_board.txt"  #define DATA_ACTIVE_BOARD "data/active_board.txt"
46  #define DATA_READ_HELP "data/read_help.txt"  #define DATA_READ_HELP "data/read_help.txt"
47    
 #define VAR_MAX_USER_ONLINE "var/max_user_online.dat"  
48  #define VAR_BBS_TOP "var/bbs_top.txt"  #define VAR_BBS_TOP "var/bbs_top.txt"
49    
50  #define VAR_ARTICLE_BLOCK_SHM "var/article_block_shm.~"  #define VAR_ARTICLE_BLOCK_SHM "var/article_block_shm.~"
# Line 56  Line 56 
56  // File loader  // File loader
57  extern const char *data_files_load_startup[];  extern const char *data_files_load_startup[];
58  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;  
59    
60  // Screen  // Screen
61  #define SCREEN_ROWS 24  #define SCREEN_ROWS 24
# Line 72  extern int data_files_load_timeval_count Line 70  extern int data_files_load_timeval_count
70  // User  // User
71  #define BBS_MAX_USER_LIMIT 100000  #define BBS_MAX_USER_LIMIT 100000
72    
73  extern int socket_server;  extern int socket_server[2];
74  extern int socket_client;  extern int socket_client;
 extern char hostaddr_server[IP_ADDR_LEN];  
75  extern char hostaddr_client[IP_ADDR_LEN];  extern char hostaddr_client[IP_ADDR_LEN];
 extern int port_server;  
76  extern int port_client;  extern int port_client;
77    
78  // SSHv2  // SSHv2
79  extern int SSH_v2;  extern int SSH_v2;
80    extern ssh_bind sshbind;
81  extern ssh_session SSH_session;  extern ssh_session SSH_session;
82  extern ssh_channel SSH_channel;  extern ssh_channel SSH_channel;
83    


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

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