home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume34 / fsp / part03 / server_def.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-12-18  |  2.3 KB  |  61 lines

  1.     /*********************************************************************\
  2.     *  Copyright (c) 1991 by Wen-King Su (wen-king@vlsi.cs.caltech.edu)   *
  3.     *                                                                     *
  4.     *  You may copy or modify this file in any manner you wish, provided  *
  5.     *  that this notice is always included, and that you hold the author  *
  6.     *  harmless for any loss or damage resulting from the installation or *
  7.     *  use of this software.                                              *
  8.     \*********************************************************************/
  9.  
  10. #include "common_def.h"
  11.  
  12. /****************************************************************************
  13. *  HTAB is structure for storing client information for one client machine.
  14. *  They makes it easy to reuse regular unix tool's source for new purposes.
  15. ****************************************************************************/
  16.  
  17. typedef struct HTAB HTAB;
  18.  
  19. struct HTAB {    unsigned long    inet_num;    /* inet number of client     */
  20.         unsigned long   last_acc;    /* last sucessful access time*/
  21.         unsigned short    next_key;    /* next key client should use*/
  22.         unsigned short    last_key;    /* previous key client used  */
  23.         unsigned short   acc_cnt;    /* number of successful acc  */
  24.         unsigned short  active:1;       /* session continuing.         */
  25.         unsigned short inhibit:1; };    /* deny access permission.   */
  26.  
  27. /*****************************************************************************
  28. * The PPATH structure is filled in by the function check_path when given a
  29. * path string.  See server_file.c for more info.
  30. *****************************************************************************/
  31.  
  32. typedef struct { char *fullp;
  33.          char *f_ptr;
  34.          int   f_len;
  35.          char *d_ptr;
  36.          int   d_len; } PPATH;
  37.  
  38. extern init_htab();
  39. extern HTAB *find_host();
  40. extern char *check_path();
  41.  
  42. extern char *server_make_dir();
  43. extern char *server_del_dir();
  44. extern char *server_del_file();
  45. extern char *server_get_dir();
  46. extern char *server_get_file();
  47. extern char *server_get_pro();
  48. extern char *server_set_pro();
  49. extern char *server_up_load();
  50. extern char *server_install();
  51. extern char *server_secure_file();
  52. extern char *server_grab_file();
  53. extern char *server_grab_done();
  54.  
  55. extern int dbug;
  56. extern char *home_dir;
  57. extern int max_nlen;
  58. extern int always_use_cache_dir;
  59. extern int dir_cache_limit;
  60. extern char *dir_cache_dir;
  61.