home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / UNIX / ARCHIE / CLIENTS / XARCHIE1.TAR / archie.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-09-04  |  1.6 KB  |  51 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    99
  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. #define CLIENT_VERSION        "xarchie"
  33.  
  34. /* Procedures from user/aquery.c */
  35.  
  36. /* archie_query(host,string,max_hits,offset,query_type,cmp_proc,flags) */
  37. extern VLINK archie_query(); 
  38.  
  39. /* defcmplink(p,q) and invdatecmplink(p,q)                             */
  40. extern int defcmplink();    /* Compare by host then by filename    */
  41. extern int invdatecmplink();    /* Compare links inverted by date      */
  42.  
  43. /* Definitions for the comparison procedures                           */
  44. #define AQ_DEFCMP    defcmplink
  45. #define AQ_INVDATECMP    invdatecmplink
  46.  
  47. /* Flags                                                               */
  48. #define AQ_NOSORT    0x01    /* Don't sort                          */
  49. #define AQ_NOTRANS    0x02    /* Don't translate Archie responses    */
  50.  
  51.