home *** CD-ROM | disk | FTP | other *** search
/ Internet Publisher's Toolbox 2.0 / Internet Publisher's Toolbox.iso / internet / ntserver / wtsource / ui.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-16  |  2.4 KB  |  107 lines

  1.  
  2. /* WIDE AREA INFORMATION SERVER SOFTWARE:
  3.    No guarantees or restrictions.  See the readme file for the full standard
  4.    disclaimer.
  5.  
  6.    Brewster@think.com
  7. */
  8.  
  9. /* Copyright (c) CNIDR (see ../COPYRIGHT) */
  10.  
  11.  
  12. /* this is a simple ui for building other ui's on top.
  13.  * -brewster
  14.  */
  15.  
  16. /* to do:
  17.  *   generate multiple queries for long documents.
  18.  *     this will crash if the file being retrieved is larger than 100k.
  19.  *   
  20.  */
  21.  
  22. #ifndef UI_H
  23. #define UI_H
  24.  
  25. #include "cdialect.h"
  26. #include "zprot.h"
  27. #include "zutil.h"
  28. #include "wprot.h"
  29. #include "transprt.h"
  30. #include "wmessage.h"
  31. #include "panic.h"
  32. #include "version.h"
  33. #include "server.h"
  34.  
  35. #define SERVICE_NAME "z39_50"
  36.  
  37. #ifdef __cplusplus
  38. /* declare these as C style functions */
  39. extern "C"
  40.     {
  41. #endif /* def __cplusplus */
  42.  
  43.  
  44. char *
  45. generate_search_apdu _AP((char* buff,  /* buffer to hold the apdu */
  46.               long *buff_len, /* number of bytes written to the buffer */
  47.               char *seed_words, /* string of the seed words */
  48.               char *database_name,
  49.               DocObj** docobjs,
  50.               long maxDocsRetrieved
  51.               ));
  52.  
  53. char *
  54. generate_retrieval_apdu _AP((char *buff, 
  55.                  long *buff_len, 
  56.                  any *docID,
  57.                  long chunk_type,
  58.                  long start_line, long end_line,
  59.                  char *type,
  60.                  char *database_name));
  61.  
  62.  
  63. /* moved into individual ui codes -brewster and bonnie
  64. void
  65. dsply_text_record_completely _AP((WAISDocumentText *record));
  66.  
  67. void
  68. display_search_response _AP((SearchResponseAPDU *response));
  69. */
  70.  
  71. /* to initialize a conection.  Returns max buffer size. */
  72.  
  73. long
  74. init_connection _AP((char* inBuffer,
  75.              char* outBuffer,
  76.              long bufferSize,
  77.              FILE *conection, 
  78.              char *userInfo));
  79.  
  80. long
  81. interpret_message _AP((char *request_message,
  82.                long request_length,
  83.                char *response_message,
  84.                long response_buffer_length, /* length of the buffer (modified)*/
  85.                FILE *connection,
  86.                boolean verbose));
  87.  
  88. long close_connection _AP((FILE *connection));
  89.  
  90. void
  91. display_text_record_completely _AP((WAISDocumentText *record, 
  92.                    boolean quote_string_quotes));
  93.  
  94. char *trim_junk _AP((char *headline));
  95.  
  96. char *delete_seeker_codes _AP((char* string,long* length));
  97.  
  98. void read_environment_variables _AP((char* host, char* port));
  99.  
  100. #ifdef __cplusplus
  101.     }
  102. #endif /* def __cplusplus */
  103.  
  104.  
  105.  
  106. #endif /* ndef UI_H */
  107.