home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / UNIX / ARCHIE / CLIENTS / C_ARCHI1.TAR / archie / archie.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-11-19  |  2.1 KB  |  67 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.  * Archie server (one of):   archie.sura.net
  11.  *                 archie.mcgill.ca
  12.  *                           archie.funet.fi
  13.  *                           archie.au
  14.  *                 archie.doc.ic.ac.uk
  15.  */
  16. #define ARCHIE_HOST "ARCHIE.SURA.NET"
  17.  
  18. /* You don't wanna touch this.  */
  19. #ifndef XARCHIE
  20. # define ARCHIES    "archie.sura.net (USA, Mexico, etc)","archie.mcgill.ca (Canada)","archie.funet.fi (Finland/Mainland Europe)","archie.au (Australia/New Zealand)","archie.doc.ic.ac.uk (Great Britain/Ireland)"
  21. # define NARCHIES    5
  22. #endif
  23.  
  24. /*
  25.  * Default value for max hits.  Note that this is normally different
  26.  * for different client implementations.  Doing so makes it easier to
  27.  * collect statistics on the use of the various clients.
  28.  */
  29. #ifdef VMS
  30. # define    MAX_HITS    98    /* VMS Client */
  31. #else
  32. # ifdef XARCHIE
  33. #  define    MAX_HITS    99    /* X Client */
  34. # else
  35. #  define    MAX_HITS    95    /* Normal client */
  36. # endif
  37. #endif
  38.  
  39. /*
  40.  * CLIENT_VERSION may be used to identify the version of the client if 
  41.  * distributed separately from the Prospero distribution.  The version
  42.  * command should then identify both the client version and the Prospero
  43.  * version identifiers.   
  44.  */
  45. #ifdef XARCHIE
  46. # define CLIENT_VERSION    "1.3-X"
  47. #else
  48. # define CLIENT_VERSION "1.2"
  49. #endif
  50.  
  51. /* Procedures from user/aquery.c */
  52.  
  53. /* archie_query(host,string,max_hits,offset,query_type,cmp_proc,flags) */
  54. extern VLINK archie_query(); 
  55.  
  56. /* defcmplink(p,q) and invdatecmplink(p,q)                             */
  57. extern int defcmplink();    /* Compare by host then by filename    */
  58. extern int invdatecmplink();    /* Compare links inverted by date      */
  59.  
  60. /* Definitions for the comparison procedures                           */
  61. #define AQ_DEFCMP    defcmplink
  62. #define AQ_INVDATECMP    invdatecmplink
  63.  
  64. /* Flags                                                               */
  65. #define AQ_NOSORT    0x01    /* Don't sort                          */
  66. #define AQ_NOTRANS    0x02    /* Don't translate Archie responses    */
  67.