/[LeafOK_CVS]/lbbs/src/bbs_net.c
ViewVC logotype

Diff of /lbbs/src/bbs_net.c

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

Revision 1.16 by sysadm, Fri May 2 03:34:58 2025 UTC Revision 1.17 by sysadm, Sun May 4 14:54:55 2025 UTC
# Line 141  process_bar(int n, int len) Line 141  process_bar(int n, int len)
141    
142  int bbsnet_connect(int n)  int bbsnet_connect(int n)
143  {  {
144          int sock, ch, result, len, loop;          int sock, result, len, loop;
145          struct sockaddr_in sin;          struct sockaddr_in sin;
146          char buf[256];          char buf[256];
147          fd_set inputs, testfds;          fd_set inputs, testfds;
148          struct timeval timeout;          struct timeval timeout;
149          struct hostent *pHost = NULL;          struct hostent *pHost = NULL;
150          int rc, rv, tos = 020, i;          int rv, tos = 020, i;
151          char remote_addr[256];          char remote_addr[256];
152          int remote_port;          int remote_port;
153          time_t t_used;          time_t t_used;
# Line 356  int bbsnet_selchange(int new_pos) Line 356  int bbsnet_selchange(int new_pos)
356  int bbs_net()  int bbs_net()
357  {  {
358          int ch, pos, i;          int ch, pos, i;
         char file_config[256];  
359    
360          strcpy(file_config, app_home_dir);          load_bbsnet_conf(CONF_BBSNET);
         strcat(file_config, "conf/bbsnet.conf");  
   
         load_bbsnet_conf(file_config);  
361    
362          BBS_last_access_tm = time(0);          BBS_last_access_tm = time(0);
363    


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

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