home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 4 / Amiga Tools 4.iso / tools / internet-tools / connect-line / cl / devkit / c / include / server.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-12  |  1.4 KB  |  80 lines

  1. /***********************************************************
  2.  *
  3.  * ConnectLine: Serverprefs und -daten
  4.  *
  5.  * Verwalter: Michael Balzer
  6.  * 
  7.  * $RCSfile: Server.h $
  8.  * $Revision: 1.1 $
  9.  * $Date: 1994/02/19 17:05:14 $
  10.  *
  11.  * $Author: balzer $
  12.  * $Locker: balzer $
  13.  * $State: Exp $
  14.  *
  15.  * $Log: Server.h $
  16.  * Revision 1.1  1994/02/19  17:05:14  balzer
  17.  * Initial revision
  18.  *
  19.  */
  20.  
  21. #ifndef _CL_Server_H
  22. #define _CL_Server_H
  23.  
  24. #include <cl/types.h>
  25. #include <time.h>
  26. #include <cl/cl_prefs.h>
  27.  
  28.  
  29. typedef struct CallLogNode CallLogNode;
  30.  
  31. struct CallLogNode
  32. {
  33.     char    name[40];        /* Name des Anrufers */
  34.     ulong    portid;            /* an welchem Port */
  35.     time_t    logouttime;        /* wann war der fertig */
  36. };
  37.  
  38.  
  39. typedef struct CLServer CLServer;
  40.  
  41. struct CLServer
  42. {
  43.     ulong    DayCntCalls;
  44.     ulong    TotCntCalls;
  45.     
  46.     ulong    DayCntDownloads;
  47.     ulong    TotCntDownloads;
  48.     
  49.     ulong    DayCntUploads;
  50.     ulong    TotCntUploads;
  51.  
  52.     ulong    CntNews;
  53.     ulong    CntMails;
  54.     ulong    CntRegistrations;
  55.     ulong    CntSysopMails;
  56. };
  57.  
  58. // aus Performancegründen separate PrefsIDs
  59. #define PREFSID_SERVER        MAKE_ID('M','P','S','M')
  60. #define PREFSID_USERLOG        MAKE_ID('M','P','S','u')
  61. #define PREFSID_SYSTEMLOG    MAKE_ID('M','P','S','s')
  62. #define PREFSID_POINTLOG    MAKE_ID('M','P','S','p')
  63.  
  64. #define PTSRV_PRIMARY        (0 + TAGT_STANDARD)
  65. #define PTSRV_CALLLOG        (0 + TAGT_NOL)
  66.  
  67.  
  68. typedef struct PDServer PDServer;
  69.  
  70. struct PDServer
  71. {
  72.     CLServer    server, serverstamp;
  73.     NOL            userlog, ulogstamp;
  74.     NOL            systemlog, slogstamp;
  75.     NOL            pointlog, plogstamp;
  76. };
  77.  
  78.  
  79. #endif
  80.