STRUCT.ACF

8.1 KB f8e0ed54c3c65baf…
/* ---------------------------------------------------------------------

                     The Auto Control File Section Door
                  By Ray Cole, SysOp The Auto Control BBS
                              Started 10-24-90
                         Version 5.40 Specifications


   You May Use This Header File Without Compensation In Your Own
   Programs.  


   Header: Declares All Structures

   --------------------------------------------------------------------- */




/* ---------------------------------------------------------------------

                       CO Is Set If An Error Occurs.

                         1 - Exit Program
                         2 - General Error (File Not Found, Etc.)
                         3 - Carrier Dropped
                         4 - Time Up For User
                         5 - Fossil Init Failure
                         6 - Mouse Driver Init Failure
                         7 - Configuration Not Found
                         8 - Inactivity Timeout

   --------------------------------------------------------------------- */






struct ACFPATH                          /* Define ACF Struct             */
                                        /* There Are 260 in ACFPATH.CTL  */

{                                       /* Declare Struct                */

  char v[3];                            /* Declare reVision Char         */
                                        /* This Struct is V6             */
                                        /* Previously V5                 */

  char tag[3];                          /* Declare Tag                   */

  char name[40];                        /* Declare Area Name             */

  char desc[60];                        /* Declare Area Description      */

  char path[40];                        /* Declare Area Path             */

  unsigned sec;                         /* Declare Area Sec              */

  char part;                            /* Declare Partial Transfer Loc. */

  char free;                            /* Declare Free/Not Location     */

  char fbbs[60];                        /* Declare FILES.BBS Name        */

  char gif;                             /* Declare GIF Flag              */

  char dtype;                           /* Declare Fixed Drive/Not       */

  char utag[3];                         /* Declare U/L Tag               */

  short flag[4];                        /* Declare Area Required Flags   */
                                        /* NOTE this is an 8-Byte Field  */

  char ft;                              /* Declare File Area Type        */

  unsigned usec;                        /* Declare U/L Sec.              */

  unsigned dsec;                        /* Declare D/L Sec.              */

  char dbase[9];                        /* Declare Database Name         */

  char nw;                              /* NewScan Search/Not 0/1=Y/N    */

  char dupe;                            /* Declare Dupe Check/Not ""     */
                                                                     
  char reserved[1];                     /* Declare Reserved Space        */

};                                      /* End Declare                   */

struct FILEBASE                         /* Declare Filebase Structure    */
                                        /* Used For Personal Files       */
                                        /* FILEBASE.ACF                  */

{                                       /* Start Declare                 */

  char file[13];                        /* Declare Filename              */

  int filar;                            /* Declare File Area             */

  char from[32];                        /* Declare From User             */

  char to[32];                          /* Declare To User               */

  int receive;                          /* Declare Received/Not Int      */

  char txt[79];                         /* Declare Short Message         */

  time_t cdate;                         /* Declare Creation Date         */

  unsigned long fs;                     /* Declare File Size             */

  char fbt;                             /* Declare Filebase Type         */

  char reserve2[123];                   /* Declare Reserved Space        */

};                                      /* End Declare                   */

struct FINDEX                           /* Declare File Index Struct     */
                                        /* Used for FDB's                */

{                                       /* Start of File Index Struct    */

  char file[13];                        /* Declare Filename Slot         */

  char path[60];                        /* Declare Path To File          */
                                        /* If NUL, Assume Area Path      */
  unsigned long size;                   /* Declare File Size             */

  unsigned long time;                   /* Declare Time/Data Modifed     */

  unsigned int down;                    /* Declare # Times Downloaded    */

  char hide;                            /* Declare Hidden Byte           */

  char desc[13];                        /* Declare Desc. String          */

  char ul[31];                          /* Declare Reserved Space        */

};                                      /* End of File Index Struct      */


struct RETURN                           /* Declare Return Status Struct  */
                                        /* Used By RETURN.ACF            */

{                                       /* Start Define                  */

  char name[13];                        /* New Filename                  */

  char path[60];                        /* New Path                      */
  
  char desc[13];                        /* New Ext. Description Name     */

  char msg[80];                         /* Short Msg To User             */

  char del;                             /* File Was Deleted/Not  0/1=N/Y */
                                                                 
  char hide;                            /* Hide the File          ""     */

  char time;                            /* Time Compensation Ratio       */

  char cred;                            /* Credit/Not               ""   */

};                                      /* End Define                    */





/* ---------------------------------------------------------------------

                     ACFILES.CFG/PROTOCOL.CFG



   ACFILES.CFG


   Line  1: BBS Name
   Line  2: Ext. Desc. Path
   Line  3: SysOp Security Level
   Line  4: BIOS/Direct (1/2)
   Line  5: Hide Files by Default on Upload (0/1)
   Line  6: Inactivity Timeout in Seconds
   Line  7: Upload Time Ratio default
   Line  8: Auto-Download Path\Filename #1
   Line  9:    SHORT Description of Line 8
   Line 10: Auto-Download Path\Filename #2
   Line 11:    SHORT Description of Line 10
   Line 12: BBS Path Where IntraNode Messages Are Set/Limits.CTL Is
   Line 13: Menu Twirl Prompt (0/1)
   Line 14: On-Line Download Counter Updating (0/1)
   Line 15: External ANSI Text Editor Command
   Line 16: NO LONGER USED
   Line 17: Free Download K Before K Ratios Take Effect
   Line 18: Upload Drive Space K - Checked Before Upload
   Line 19: SysOp Name
   Line 20: View "U/L By" Security Level
   Line 21: Forced Pre-Upload Level



   PROTOCOL.CFG


   Line  1: Protocol Name
   Line  2: Batch Protocol? Yes/No
   Line  3: Two-Way Protocol? Yes/No
   Line  4: Send Files Commmand (User Download Option)
   Line  5: Receive Files Command (Uesr Upload Option)
   Line  6: Log Format Line
   Line  7: File Sent OK Flag
   Line  8: File Received OK Flag
   Line  9: Protocol's Log File - Path\Name Of Log File
            Created BY THE PROTOCOL.


   ACFNODE.CFG

   Line  1: Path to ACFPATH.CTL/ACFILES.CFG/PROTOCOL.CFG
   Line  2: Node's Log File of Activity
   Line  3: Node Number - Used In Detecting Intra-Node Messages

   --------------------------------------------------------------------- */