home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume25 / fsp / part01 / server_def.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-12-12  |  1.8 KB  |  43 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. extern init_htab();
  28. extern HTAB *find_host();
  29. extern char *check_path();
  30.  
  31. extern char *server_make_dir();
  32. extern char *server_del_dir();
  33. extern char *server_del_file();
  34. extern char *server_get_dir();
  35. extern char *server_get_file();
  36. extern char *server_get_pro();
  37. extern char *server_set_pro();
  38. extern char *server_up_load();
  39. extern char *server_install();
  40.  
  41. extern int dbug;
  42. extern char *home_dir;
  43.