home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 15 / CD_ASCQ_15_070894.iso / vrac / cp_211.zip / CPOINT.H < prev    next >
C/C++ Source or Header  |  1994-06-09  |  2KB  |  92 lines

  1.  
  2. /*
  3.    NOTE: All of these are C structures which means, mostly, that
  4.          any character string fields are terminated with an ASCII
  5.          NULL or 0. Bit maps are two-byte integers.
  6. */
  7.  
  8. #define MAX_AREAS   200    // do NOT change any of these values
  9. #define MAX_AFIX     10
  10. #define MAX_SEND     10
  11. #define MAX_FREQ     10
  12.  
  13.  
  14. struct _MAREA {            // this is in the _CFG later
  15.    char tag[21],
  16.         desc[41];
  17.    int  SPARE1,
  18.         SPARE2;
  19.    int  new:1,
  20.         arc:1,
  21.         UNUSED:14;
  22.    long lastrec;
  23. };
  24.  
  25. struct _AFIX {             // this is in the _CFG later
  26.    int add;
  27.    char area[21];
  28. };
  29.  
  30. struct _SEND {             // this is in the _CFG later
  31.    char file[31],
  32.         desc[65];
  33. };
  34.  
  35. struct _FREQ {             // this is in the _CFG later
  36.    char file[31];
  37. };
  38.  
  39. struct _CFG {
  40.    /* telecom config */
  41.    int  port;
  42.    long baud;
  43.    int  locked;
  44.    char init[31];
  45.    char predial[31];
  46.    char postdial[31];
  47.    char SPARE_1[64];
  48.  
  49.    /* boss config */
  50.    int  zone;
  51.    int  net;
  52.    int  node;
  53.    char domain[31];
  54.    char phone[16];
  55.    long boss_baud;
  56.    int  func_req:1,        // note that this is a bit mapped int field
  57.         noupld:1,
  58.         BOSS_UNUSED:14;
  59.    char SPARE_2[64];
  60.  
  61.    /* local config */
  62.    char name[36];
  63.    char password[9];
  64.    int  point;
  65.    char origin[41];
  66.    char archive[31];
  67.    char unarchive[31];
  68.    char editor[9];
  69.    int  toss:1,            // note that this is a bit mapped int field
  70.         link:1,
  71.         logs:1,
  72.         LOC_UNUSED:13;
  73.    char city[21],
  74.         basedir[31];
  75.    char SPARE_3[12];
  76.  
  77.    /* Hudson message base areas */
  78.    struct _MAREA marea[MAX_AREAS];     // this is the struct defined above
  79.  
  80.    /* AreaFix list */
  81.    struct _AFIX afix[MAX_AFIX];        // this is the struct defined above
  82.  
  83.    /* Send file list */
  84.    struct _SEND send[MAX_SEND];        // this is the struct defined above
  85.  
  86.    /* Request list */
  87.    struct _FREQ freq[MAX_FREQ];        // this is the struct defined above
  88.  
  89. };
  90.  
  91.  
  92.