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

Diff of /lbbs/src/net_server.c

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

Revision 1.76 by sysadm, Wed Oct 29 07:35:05 2025 UTC Revision 1.79 by sysadm, Wed Nov 5 04:19:21 2025 UTC
# Line 1  Line 1 
1  /***************************************************************************  /* SPDX-License-Identifier: GPL-3.0-or-later */
2                                                    net_server.c  -  description  /*
3                                                           -------------------   * net_server
4          Copyright            : (C) 2004-2025 by Leaflet   *   - network server with SSH support
5          Email                : leaflet@leafok.com   *
6   ***************************************************************************/   * Copyright (C) 2004-2025  Leaflet <leaflet@leafok.com>
7     */
 /***************************************************************************  
  *                                                                         *  
  *   This program is free software; you can redistribute it and/or modify  *  
  *   it under the terms of the GNU General Public License as published by  *  
  *   the Free Software Foundation; either version 3 of the License, or     *  
  *   (at your option) any later version.                                   *  
  *                                                                         *  
  ***************************************************************************/  
8    
9  #include "bbs.h"  #include "bbs.h"
10  #include "bbs_main.h"  #include "bbs_main.h"
# Line 47  Line 39 
39  #include <sys/wait.h>  #include <sys/wait.h>
40  #include <systemd/sd-daemon.h>  #include <systemd/sd-daemon.h>
41    
42  #define WAIT_CHILD_PROCESS_EXIT_TIMEOUT 5 // second  enum _net_server_constant_t
43  #define WAIT_CHILD_PROCESS_KILL_TIMEOUT 1 // second  {
44            WAIT_CHILD_PROCESS_EXIT_TIMEOUT = 5, // second
45            WAIT_CHILD_PROCESS_KILL_TIMEOUT = 1, // second
46    
47            SSH_AUTH_MAX_DURATION = 60 * 1000, // milliseconds
48    };
49    
50  struct process_sockaddr_t  struct process_sockaddr_t
51  {  {
# Line 59  typedef struct process_sockaddr_t PROCES Line 56  typedef struct process_sockaddr_t PROCES
56    
57  static PROCESS_SOCKADDR process_sockaddr_pool[MAX_CLIENT_LIMIT];  static PROCESS_SOCKADDR process_sockaddr_pool[MAX_CLIENT_LIMIT];
58    
59  #define SSH_AUTH_MAX_DURATION (60 * 1000) // milliseconds  static const char SFTP_SERVER_PATH[] = "/usr/lib/sftp-server";
   
 #define SFTP_SERVER_PATH "/usr/lib/sftp-server"  
60    
61  /* A userdata struct for session. */  /* A userdata struct for session. */
62  struct session_data_struct  struct session_data_struct


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

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