/[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.76 by sysadm, Tue Nov 4 13:49:51 2025 UTC Revision 1.79 by sysadm, Wed Nov 5 02:48:48 2025 UTC
# Line 3  Line 3 
3   * bbs_net   * bbs_net
4   *   - user interactive feature of site shuttle   *   - user interactive feature of site shuttle
5   *   *
6   * Copyright (C) 2004-2025 by Leaflet <leaflet@leafok.com>   * Copyright (C) 2004-2025  Leaflet <leaflet@leafok.com>
7   */   */
8    
9  #include "bbs.h"  #include "bbs.h"
# Line 45  struct _bbsnet_conf Line 45  struct _bbsnet_conf
45          char host2[40];          char host2[40];
46          char ip[40];          char ip[40];
47          in_port_t port;          in_port_t port;
48          char charset[20];          char charset[CHARSET_MAX_LEN + 1];
49  } bbsnet_conf[MAXSTATION];  } bbsnet_conf[MAXSTATION];
50    
51  static MENU_SET bbsnet_menu;  static MENU_SET bbsnet_menu;
# Line 476  static int bbsnet_connect(int n) Line 476  static int bbsnet_connect(int n)
476                  }                  }
477                  else if (nfds == 0) // timeout                  else if (nfds == 0) // timeout
478                  {                  {
479                          if (time(NULL) - BBS_last_access_tm >= MAX_DELAY_TIME)                          if (time(NULL) - BBS_last_access_tm >= BBS_max_user_idle_time)
480                          {                          {
481                                  break;                                  break;
482                          }                          }
# Line 874  extern int bbs_net() Line 874  extern int bbs_net()
874                          log_error("KEY_NULL\n");                          log_error("KEY_NULL\n");
875                          goto cleanup;                          goto cleanup;
876                  case KEY_TIMEOUT:                  case KEY_TIMEOUT:
877                          if (time(NULL) - BBS_last_access_tm >= MAX_DELAY_TIME)                          if (time(NULL) - BBS_last_access_tm >= BBS_max_user_idle_time)
878                          {                          {
879                                  log_error("User input timeout\n");                                  log_error("User input timeout\n");
880                                  goto cleanup;                                  goto cleanup;


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

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