home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / BSRC_250.LZH / SCHED.H < prev    next >
Text File  |  1991-09-15  |  7KB  |  119 lines

  1. /*--------------------------------------------------------------------------*/
  2. /*                                                                          */
  3. /*                                                                          */
  4. /*      ------------         Bit-Bucket Software, Co.                       */
  5. /*      \ 10001101 /         Writers and Distributors of                    */
  6. /*       \ 011110 /          Freely Available<tm> Software.                 */
  7. /*        \ 1011 /                                                          */
  8. /*         ------                                                           */
  9. /*                                                                          */
  10. /*  (C) Copyright 1987-91, Bit Bucket Software Co., a Delaware Corporation. */
  11. /*                                                                          */
  12. /*                                                                          */
  13. /*               Scheduler definitions used in BinkleyTerm                  */
  14. /*                                                                          */
  15. /*                                                                          */
  16. /*    For complete  details  of the licensing restrictions, please refer    */
  17. /*    to the License  agreement,  which  is published in its entirety in    */
  18. /*    the MAKEFILE and BT.C, and also contained in the file LICENSE.250.    */
  19. /*                                                                          */
  20. /*    USE  OF THIS FILE IS SUBJECT TO THE  RESTRICTIONS CONTAINED IN THE    */
  21. /*    BINKLEYTERM  LICENSING  AGREEMENT.  IF YOU DO NOT FIND THE TEXT OF    */
  22. /*    THIS  AGREEMENT IN ANY OF THE  AFOREMENTIONED FILES,  OR IF YOU DO    */
  23. /*    NOT HAVE THESE FILES,  YOU  SHOULD  IMMEDIATELY CONTACT BIT BUCKET    */
  24. /*    SOFTWARE CO.  AT ONE OF THE  ADDRESSES  LISTED BELOW.  IN NO EVENT    */
  25. /*    SHOULD YOU  PROCEED TO USE THIS FILE  WITHOUT HAVING  ACCEPTED THE    */
  26. /*    TERMS  OF  THE  BINKLEYTERM  LICENSING  AGREEMENT,  OR  SUCH OTHER    */
  27. /*    AGREEMENT AS YOU ARE ABLE TO REACH WITH BIT BUCKET SOFTWARE, CO.      */
  28. /*                                                                          */
  29. /*                                                                          */
  30. /* You can contact Bit Bucket Software Co. at any one of the following      */
  31. /* addresses:                                                               */
  32. /*                                                                          */
  33. /* Bit Bucket Software Co.        FidoNet  1:104/501, 1:343/491             */
  34. /* P.O. Box 460398                AlterNet 7:491/0                          */
  35. /* Aurora, CO 80046               BBS-Net  86:2030/1                        */
  36. /*                                Internet f491.n343.z1.fidonet.org         */
  37. /*                                                                          */
  38. /* Please feel free to contact us at any time to share your comments about  */
  39. /* our software and/or licensing policies.                                  */
  40. /*                                                                          */
  41. /*--------------------------------------------------------------------------*/
  42.  
  43.  
  44. /* Definitions for day of the week */
  45. #define DAY_SUNDAY      0x01
  46. #define DAY_MONDAY      0x02
  47. #define DAY_TUESDAY     0x04
  48. #define DAY_WEDNESDAY   0x08
  49. #define DAY_THURSDAY    0x10
  50. #define DAY_FRIDAY      0x20
  51. #define DAY_SATURDAY    0x40
  52. #define DAY_UNUSED      0x80
  53.  
  54. #define DAY_WEEK  (DAY_MONDAY|DAY_TUESDAY|DAY_WEDNESDAY|DAY_THURSDAY|DAY_FRIDAY)
  55. #define DAY_WKEND (DAY_SUNDAY|DAY_SATURDAY)
  56.  
  57. /* Definitions for matrix behavior */
  58. #define MAT_CM          0x0001
  59. #define MAT_DYNAM       0x0002
  60. #define MAT_BBS         0x0004
  61. #define MAT_NOREQ       0x0008
  62. #define MAT_OUTONLY     0x0010
  63. #define MAT_NOOUT       0x0020
  64. #define MAT_FORCED      0x0040
  65. #define MAT_LOCAL       0x0080
  66. #define MAT_SKIP        0x0100
  67. #define MAT_NOMAIL24    0x0200
  68. #define MAT_NOOUTREQ    0x0400
  69. #define MAT_NOCM        0x0800
  70. #define MAT_HIPRICM     0x1000
  71. #define MAT_RESERVED2   0x2000
  72. #define MAT_RESERVED3   0x4000
  73. #define MAT_RESERVED4   0x8000
  74.  
  75. /*********************************************************************
  76. * If either of these structures are changed, don't forget to change  *
  77. * the BinkSched string in sched.c, as well as the routines that read *
  78. * and write the schedule file (read_sched, write_sched)!!!           *
  79. *********************************************************************/
  80. typedef struct _bink_event
  81. {
  82.    int minute;                          /* Start of Event, minutes past 12AM */
  83.    int length;                          /* Number of minutes event runs      */
  84.    int behavior;                        /* Behavior mask                     */
  85.    int wait_time;                       /* Avg seconds to wait between dials */
  86.    int node_cost;                       /* Max cost node to call, this event */
  87.    int with_connect;                    /* Number of calls to make w/carrier */
  88.    int no_connect;                      /* Number of calls to make w/o DCD   */
  89.    unsigned char days;                  /* Bit field for days to execute     */
  90.    char last_ran;                       /* Day of month event last ran       */
  91.    unsigned long mailqsize;             /* Amount of mail needed to make call*/
  92.    unsigned char errlevel[9];           /* Errorlevel exits                  */
  93.  
  94.    char cmd[32];                        /* Chars to append to packer,        */
  95.                                         /* aftermail and cleanup             */
  96.    char month;                          /* Month when to do it               */
  97.    char day;                            /* Day of month to do it             */
  98.    char err_extent[6][4];               /* 3 byte extensions for errlvls 4-9 */
  99.    unsigned char extra[4];              /* Extra space for later             */
  100. } BINK_EVENT, *BINK_EVENTP;
  101.  
  102. typedef struct _history
  103. {
  104.    int  which_day;                      /* Day number for this record        */
  105.    int  bbs_calls;                      /* Number of BBS callers             */
  106.    int  mail_calls;                     /* Number of mail calls              */
  107.    int  calls_made;                     /* Number of outgoing calls made     */
  108.    int  connects;                       /* Number of outbound call successes */
  109.    int  files_in;                       /* Number of files received          */
  110.    int  files_out;                      /* Number of files sent              */
  111.    int  last_caller;                    /* Type of last call                 */
  112.    ADDR last_addr;                      /* Address of last, excl. Domain     */
  113.    char last_Domain[32];                /* Domain of last                    */
  114.    long last_Elapsed;                   /* Time of last outbound session     */
  115.    ADDR next_addr;                      /* Address of next, excl. Domain     */
  116.    char next_Domain[32];                /* Domain of next                    */
  117.    long callcost;                       /* Cumulative of call costs          */
  118. } HISTORY, *HISTORYP;
  119.