home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM Magic 1995 #1 / CDM_5.ISO / shell / mailers / im / imdev.arj / LASTCALL.H < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-25  |  2.5 KB  |  67 lines

  1. /*
  2. **  lastcall.h (InterMail)
  3. **
  4. **  Copyright 1989-1994 InterZone Software, Inc. All rights reserved.
  5. **
  6. **  Record format for LASTCALL.IM, LASTCALL.002, etc. 
  7. **  (Last in/outbound call, recent activity)
  8. **
  9. **  -------------------------------------------------------------------------
  10. **  This information is not necessarily final and is subject to change at any
  11. **  given time without further notice
  12. **  -------------------------------------------------------------------------
  13. */
  14.  
  15. /*
  16. **  Recent activity (statistics) definitions.
  17. */
  18. typedef struct
  19.     {
  20.     word    inbound,                        /* Inbound mail calls */
  21.             outbound,                       /* Outbound mail calls */
  22.             humans,                         /* Inbound BBS callers */
  23.             filesin,                        /* Inbound files */
  24.             filesout,                       /* Outbound files */
  25.             goodsess,                       /* Good sessions */
  26.             badsess,                        /* Failed sessions */
  27.             requests;                       /* Inbound file requests */
  28.     dword   date,                           /* UNIX-style timestamp */
  29.             bytesin,                        /* Inbound (rcvd) bytes */
  30.             bytesout;                       /* Outbound (sent) bytes */
  31.     }
  32.     STATREC, *STATRECPTR;
  33.  
  34. /*
  35. **  Note that the two char[] arrays are Borland Pascal style strings. The 
  36. **  first byte is the length byte. The actual string starts at [1] and 
  37. **  the string is NOT NUL terminated. In pascal they would be 
  38. **  declared as string[30] and string[40].
  39. **
  40. **  Mail server #1 uses LASTCALL.IM, #2 uses LASTCALL.002, etc.
  41. */
  42. typedef struct
  43.     {
  44.     char    system_name[31],
  45.             location[41];
  46.     word    zone,net,node,point;
  47.     dword   time;                           /* UNIX-style timestamp */
  48.     }
  49.     LASTCALL, *LASTCALLPTR;
  50.  
  51. /*
  52. **  The LASTCALL.IM file contains four records, two STATREC and two
  53. **  LASTCALL. Today's activity is moved to Yesterday's activity as soon
  54. **  as IM runs its 'after-midnight' internal event.
  55. */
  56. typedef struct
  57.     {
  58.     LASTCALL    lastin,                     /* Last inbound mail call */
  59.                 lastout;                    /* Last outbound mail call */
  60.     STATREC     today_act,                  /* Today's activity */
  61.                 yesterday_act;              /* Yesterday's activity */
  62.     }
  63.     ACTIVITY, *ACTIVITYPTR;
  64.  
  65. /* end of file "lastcall.h" */
  66.  
  67.