home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume22 / archie / part01 / archie.h < prev    next >
C/C++ Source or Header  |  1991-08-21  |  2KB  |  48 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    95
  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    "1.1"
  31.  
  32. /* Procedures from user/aquery.c */
  33.  
  34. /* archie_query(host,string,max_hits,offset,query_type,cmp_proc,flags) */
  35. extern VLINK archie_query(); 
  36.  
  37. /* defcmplink(p,q) and invdatecmplink(p,q)                             */
  38. extern int defcmplink();    /* Compare by host then by filename    */
  39. extern int invdatecmplink();    /* Compare links inverted by date      */
  40.  
  41. /* Definitions for the comparison procedures                           */
  42. #define AQ_DEFCMP    defcmplink
  43. #define AQ_INVDATECMP    invdatecmplink
  44.  
  45. /* Flags                                                               */
  46. #define AQ_NOSORT    0x01    /* Don't sort                          */
  47. #define AQ_NOTRANS    0x02    /* Don't translate Archie responses    */
  48.