2 * Copyright (C) 1995, Index Data.
3 * See the file LICENSE for details.
4 * Sebastian Hammer, Adam Dickmeiss
6 Compilation and installation
8 The primary output of the source here is the lib/libyaz.a library,
9 which contains support functions for implementing the server or client
12 Two test-programs of interest are generated when you type 'make' at
13 the top level. server/ztest and client/client. Ztest is a dummy database
14 server which returns canned responses to all queries. It's good for
15 verifying that the protocol works ok, and ztest.c shows a minimalistic
16 implementation of the 'backend' interface.
18 Client is a linemode Z39.50 client. It supports a fair amount of the
19 functionality of Z39.50v2/SR, but some things you need to enable or disable
20 by recompilation. Its primary purpose is to excersise the package, and
21 verify that the protocol works OK. It can be started by typing
23 client tcp:<hostname>:<port>
25 at the UNIX prompt, to connect to a Z39.50 server, or
27 client osi:[<tsel>'/']<hostname>:<port>
29 to connect to an OSI SR target (this requires mOSI-support). To connect to
30 the DANBIB test target, you might use:
32 client osi:0103/find2.denet.dk:4500
34 Client supports CCL-queries, with the mapping between qualifiers and
35 attribute values specified in the file default.bib in the working
36 directory. Use '?' to get a list of the available commands.
42 util - Various little utility functions. Logging, memory debugging,
43 primitive ISO 2709 presentation for the client, etc.
45 odr - Open Data Representation. This module implements the BER
46 encoding rules. Documentation is found in the files odr-use.man
49 asn - This module implements the Z39.50/SR protocol. The best way
50 to find out how it works is to look in the sample
51 client/server code in server/seshigh.c or yazlib/tst.c. The
52 interface is still wholly described by the file proto.h
53 which defines structure and type definitions for each of the
54 types introduced in the protocol specification.
56 yazlib - This module implements the transport transparency
57 stack (COMSTACK). The comstack implements a generic interface
58 for exchanging BER-encoded records over a network. It supports
59 the 'American' mode of exchanging the records straight over
60 TCP/IP, and uses Peter Furniss' XTIMOSI package over RFC1006.
61 Look for documentation in the file comstack.man.
63 rfc1006 - Xtimosi requires an implementation of the OSI transport
64 layer with an XTI-based API. Some systems (HP and DEC,
65 notably) provide this. For others, we provide an
66 implementation of the RFC1006 protocol (which is what
67 ISODE-based implementations often use). This module is not
68 neeeded if you don't use xtimosi, and it's not included in the
71 server - This is the implementation of the server frontend. It
72 provides event-handling and server managament functions,
73 and calls the backend primitives (best documentation of these
74 is in the file include/backend.h). See server.txt.
76 client - A demonstration client. If we come upon a good design for a
77 higher level client API, that will live here.
79 include - The various header files.
81 makelib - This is a simple utility that gathers the libraries from the
82 previous modules into libyaz.a.
84 lib - The libraries. Primarily libyaz.a.