home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / UNIX / ARCHIE / CLIENTS / NEXTARCH.TAR / NeXTArchie / include / archie.h next >
Encoding:
C/C++ Source or Header  |  1991-08-20  |  1.6 KB  |  50 lines

  1. /*
  2.  * archie.h : Definitions for the programmatic Prospero interface to Archie
  3.  *
  4.  *     Written by Brendan Kehoe (brendan@cs.widener.edu), 
  5.  *                George Ferguson (ferguson@cs.rochester.edu), and
  6.  *                Clifford Neuman (bcn@isi.edu).
  7.  *
  8.  */
  9.  
  10. /*
  11.  * Archie server (one of):   archie.mcgill.ca
  12.  *                           archie.funet.fi
  13.  *                           archie.au
  14.  */
  15. #define ARCHIE_HOST "ARCHIE.MCGILL.CA"
  16.  
  17. /*
  18.  * Default value for max hits.  Note that this is normally different
  19.  * for different client implementations.  Doing so makes it easier to
  20.  * collect statistics on the use of the various clients.
  21.  */
  22. #define    MAX_HITS    100
  23.  
  24. /*
  25.  * CLIENT_VERSION may be used to identify the version of the client if 
  26.  * distributed separately from the Prospero distribution.  The version
  27.  * command should then identify both the client version and the Prospero
  28.  * version identifiers.   
  29.  *
  30.  * #define CLIENT_VERSION    "xyz"
  31.  */
  32.  
  33. /* Procedures from user/aquery.c */
  34.  
  35. /* archie_query(host,string,max_hits,offset,query_type,cmp_proc,flags) */
  36. extern VLINK archie_query(); 
  37.  
  38. /* defcmplink(p,q) and invdatecmplink(p,q)                             */
  39. extern int defcmplink();    /* Compare by host then by filename    */
  40. extern int invdatecmplink();    /* Compare links inverted by date      */
  41.  
  42. /* Definitions for the comparison procedures                           */
  43. #define AQ_DEFCMP    defcmplink
  44. #define AQ_INVDATECMP    invdatecmplink
  45.  
  46. /* Flags                                                               */
  47. #define AQ_NOSORT    0x01    /* Don't sort                          */
  48. #define AQ_NOTRANS    0x02    /* Don't translate Archie responses    */
  49.  
  50.