home *** CD-ROM | disk | FTP | other *** search
- FrontDoor Request Processor for RemoteAccess 2.00 19 Jun 1993
- -------------------------------------------------
-
- Copyright 1993 Mats Wallin All rights reserved
-
-
- Introduction
- ------------
-
- FDRQPRA is a Request Processor for RemoteAccess. A Request
- Processor is a program that FrontDoor executes whenever it
- receives a file request. It is then the Request Processor
- that processes the list of requested files, and returns
- a list of files to FrontDoor, that FrontDoor then will
- send.
-
- The advantage with a Request Processor, is that it can
- be adapted for a special BBS program, or any other
- program on the system that uses the Request Processor.
-
- This Request Processor uses the advantages of the file
- system that RemoteAccess 2.00 and later versions uses.
- This will speed up most file requests, especially for
- systems using CD-ROMs. It will also, optionally, update
- the download counters for requested files.
-
- Another advantage of this Request Processor, is the possibility
- to "check" a file request locally. E.g. you can run it
- manually, and see what the result of a file request would
- be for the system requesting files.
-
- One more advantage with this request processor, and that is
- the possibility for it to return a message to the requesting
- system, containing the descriptions of the requested files.
-
-
-
- Requirements
- ------------
-
- FDRQPRA requires the following thing to run:
-
- * FrontDoor 2.20 or later
-
- * RemoteAccess 2.00 or later
-
- * The environment variable FD pointing to the directory
- where SETUP.FD is located, or SETUP.FD in the current
- directory
-
- * A list of requestable directories in the file specified
- in SETUP.FD
-
- * A list of magic (alias) file names, in the file
- specified in SETUP.FD
-
- * The environment variable RA pointing to the directory
- where CONFIG.RA is located, or CONFIG.RA in the current
- directory
-
-
- FDRQPRA will create some files containing information
- about the requestable directories and the magic filenames.
- These files will be stored in the same directory and with
- the same name, as the files specified in SETUP.FD, but with
- another extension. The extension used is .RQS for the files
- used during secure sessions, .and .RQU for the files used
- during unsecure sessions.
-
- These files will be maintained automatically by FDRQPRA,
- and is updated every time the list of requestable
- directories, magic names, or FILES.RA, is changed. It is
- important that these file are not removed, since it is much
- slower to create them every time, then to use them from the
- last run.
-
- IMPORTANT! If your lists of requestable directories or
- list of magic names, uses the .RQS or .RQU
- extensions, make sure that you changes this
- to another extension. If you don't rename
- the file, FDRQPRA will overwrite your list
- with it's own list.
- It is also important that your list of
- requestable directories, and the list of
- magic names, doesn't have the same basename
- (the name before the extension). If they have,
- FDRQPRA will not work properly, since it then
- will overwrite its own files.
-
-
- If your list with requestable directories contains a
- directory which isn't defined as a file area in RemoteAccess,
- FDRQPRA will switch over to the same kind of request
- processing as FrontDoor does, e.g. to scan all the files
- in that directory. This makes it possible to have a directory
- with files that should be requestable, but not available from
- the BBS.
-
-
- How to use it
- -------------
-
- FDRQPRA is executed by FrontDoor every time someone requests
- a file. FDRQPRA needs some parameters to be able to know
- what to do, and FrontDoor is capable of supplying these
- parameters.
-
- The following is a list of the switches that FDRQPRA
- supports. Switches can start either with a slash (/) or
- with a dash (-). All switches can be shortened to the shortest
- unique name. The switches that accepts a value, can use
- either a colon (:) or a equal character (=) between the
- switch name and the actual value.
-
- All switches can either be specified on the command line,
- or in a configuration file. The configuration file should
- be located in the same directory as the .EXE file, and with
- the same basename (i.e. FDRQPRA if you don't rename it). The
- extension should either be .CFG, or, if you prefer to have
- one configuration file per task, .%TASK%. If the .%TASK% file
- exists, it will always be read. The .CFG file is only read if
- the .%TASK% file doesn't exist.
-
- Switches specified in the config file can be overriden if
- also specified on the command line.
-
- /address:<aka> Address of system requesting files
- /bps:<bps> BPS rate of connection
- /[no]cdrom Support RA's CD-ROM settings
- /check:<filename> Check result of requesting specified file
- /create Create list of directories/magic names
- /[no]descriptions Send file descriptions to requesting
- system (default)
- /[no]freefiles Do not check request limits for files
- marked as free in RA's setup
- /info:<filename> Name of file containing info about
- requesting system. This parameter can be
- specified instead of /address, /bps and
- /operator
- /[no]log:<filename> If logging should be performed (see below)
- /minutes:<min> Max # of minutes for the file request
- /operator:<name> Name of SysOp requesting files
- /request:<filename> Name of file containing requested files
- /secure Session is password protected
- /target:<filename> Name of file where found files should be written
- /unsecure Session is not password protected
- /updcount Update RA's download counters
-
- Not all switches would make much sense to put in the config
- file, especially not those that FD will use to pass
- information to FDRQPRA. The switches that can be placed in
- the config file is /[NO]CDROM, /[NO]DESCRIPTIONS, /[NO]FREEFILES,
- /[NO]LOG:<filename> and /UPDCOUNT.
-
- The /LOG switch is a little bit special. If this switch is
- not specified at all, FDRQPRA writes loginfo to FD's logfile.
- If it is specified as /LOG=<filename>, logging is done to
- the specified filename. To force FDRQPRA to write no loginfo
- at all, use /NOLOG. If an error is detected during
- initialization, it will always be written to FD's logfile,
- ignoring how this switch is set. This is to aid trouble
- shooting.
-
- The /CREATE switch is not meant to be used all the times.
- FDRQPRA will automaticall detect if it is necessary to
- create its own lists of directories/magic names every time
- its run. This switch is only meant if these files needs to
- be recreated due to some reason, or if you know that you
- have modified the list of requestable directories, magic
- names, or RA's area configuration. To create both the list
- for unsecure sessions, as well as the list for secure
- sessions, you will have to run FDRQPRA twice, once specifying
- only /CREATE, and once specifying /CREATE /SECURE.
-
- FrontDoor needs to fill in some information in the command
- line, and to do that, it uses the same macros as it does
- for Service Requests. The macros useful for FDRQPRA is:
-
- =A The requesting system's network address. Eg.
- 2:270/17.
-
- =B The baud rate of the connection. Eg. 9600.
-
- =F Name of file containing information about requesting
- system.
-
- =H Number of minutes until next event not allowing
- file requests
-
- =O The operator of the requesting system. Eg.
- Bilbo_Baggins.
-
- =R Name of file containing requested files
-
- =T Name of file where found files should be written
-
- =X Whether or not the session is password protected.
- This macro can have two values, SECURE or
- UNSECURE.
-
- This means, that a typical command line to run FDRQPRA, would
- look like this:
-
- FDRQPRA /REQUEST:=R /TARGET:=T /=X /INFO:=F /MINUTES:=H
-
- or, to make it shorter:
-
- FDRQPRA /R:=R /T:=T /=X /I:=F /M:=H
-
- An alternative command line would be:
-
- FDRQPRA /R:=R /T:=T /=X /A:=A /O:"=O" /B:=B /M:=H
-
- In most cases, one of the lines above would be the one needed,
- and should be entered in
- FDSETUP->Mailer->File Requests->Request Processor->Program
-
- If the =O macro is used, it should be enclosed with "
- characters to prevent DOS to treat some special characters,
- e.g. < > and |, in a way that would prevent FDRQPRA from
- working correctly.
-
- Even if it is possible to specify a fixed # of minutes for
- a file request on the command line, it should be done in
- FDSETUP. FDRQPRA uses that number in SETUP.FD, the
- possibility to specify a number of minutes on the command
- line should only be used to let FD specify the number of
- minutes left to next event not allowing file requests.
-
-
- Use FDRQPRA to test file requests locally
- -----------------------------------------
-
- FDRQPRA could be used to check a file request locally, too
- get some information why a certain file request fails, or
- just to test your setup.
-
- To run FDRQPRA like this, enter the following command:
-
- FDRQPRA /CHECK=<file>
-
- To test a file request that requires a password, use the
- following command:
-
- FDRQPRA /CHECK="<file> !<password>"
-
- To test more then one file request at the same time, use the
- following command:
-
- FDRQPRA /CHECK="<file1> [!<pwd1>],<file2> [!<pwd2>][,...]"
-
- To make the request more realistic, you can also add any of
- the other switches. But the only switches that would make
- any difference, is the /SECURE and the /BPS=<bps> switches,
- and the /ADDRESS switch, which would have FDRQPRA create the
- PKT file it should have sent to the requesting system.
-
-
-
- Legal notice
- ------------
-
- FDRQPRA is provided to you as is, without warranty of any
- kind. In no event shall Mats Wallin be liable to yoyu or
- anyone else for any damages or costs arising from the use
- or inability to use this program.
-
- FDRQPRA is protected by copyright laws, and may not be
- modified, reversed engineered, sold or distributed in any
- way that would involve some sort of trade, without written
- permission from Mats Wallin.
-
- FrontDoor is a trademark of Joaquim Homrighausen.
-
- RemoteAccess is a trademark of Wantree Development.
-
-
-
- Registering
- -----------
-
- If you find FDRQPRA of any value, and continue to use it
- after a first trial period, I would appreciate if you
- register the program.
-
- The registration fee for the program is SEK 100, USD 15,
- GBP 10 or the same amount in any other currency.
- If another currency then SEK is used, please add SEK 50,
- USD 7 or GBP 5 to cover the currency exchange.
-
- When the registration fee and a netmail with your name,
- nodenumber and the payment method used has been received,
- I will send a netmail crash with the key information
- needed to run in registered mode.
-
- Send the netmail with registration information to:
-
- Mats Wallin
- 2:201/329@fidonet
-
- If you're not a member of FidoNet, send the registration
- information (including your snail mail address) to me at
- the following snail mail address:
-
- Mats Wallin
- Förskottsvägen 11
- S-126 44 Hägersten
- Sweden
-
- The registration fee can either be sent to the address
- above in cash, cheque, etc, or to the following postal
- giro (CCP).
-
- 640302-0297
-
- The only difference between the registered and unregistered
- version, is that the unregistered version adds the text
- (unregistered) to every netmail created.
-
-
- Bug reports, suggestions, etc.
- ------------------------------
-
- If you find any bugs, or have suggestions or comments on
- this program, I would appreciate if you would let me know.
- Send the information to me at:
-
- 2:201/329@fidonet or mw@fido.lu
-