X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=README.txt;h=27fd545cb091bc35244e75381ac4f961392d0e79;hb=83433ae599bf74603082679df28e178a2f3d0ff7;hp=c7a07e518dcf444685d015395bd37a1de1d4f69b;hpb=bf377ba45c8c1cbcf843fdecc6d5c68fda6bad18;p=yazpp-moved-to-github.git diff --git a/README.txt b/README.txt index c7a07e5..27fd545 100644 --- a/README.txt +++ b/README.txt @@ -1,35 +1,100 @@ YAZ++ - A C++ library for YAZ -$Id: README.txt,v 1.1 1999-01-28 09:41:07 adam Exp $ +$Id: README.txt,v 1.10 2001-11-06 17:08:05 adam Exp $ o Introduction -YAZ is development toolkit that implements the ANSI Z39.50 protocol. -YAZ homepage is: http://www.indexdata.dk/yaz +YAZ++ is a C++ layer for YAZ and implements the ANSI Z39.50 +protocol for information retrieval (client - and server side). +YAZ homepage is: http://www.indexdata.dk/yaz/ -YAZ++ is a C++ wrapper on top of that YAZ. It provides a relatively -simple, high level, interface to YAZ. +YAZ++ uses the same license as YAZ - see LICENSE file for details. -o Documentatation +o Overview -Description of object model can be found in the sub directory doc, file -index.html. +YAZ++ builds a programmers' library libyaz++.lib and a few +example applications: + yaz-my-client basic client + yaz-my-server basic server + yaz-proxy not-so-basic proxy server -The documentation was auto-generated from source using doc++. +Directory structure of the YAZ++ package: -o Installation + -- src (C++ source) + -- include/yaz++ (C++ headers) + -- win (Windows build files) -Before compilation can take place YAZ must be installed. Unpack -yaz-.tar.gz in the same directory as yaz++. +o Installation, Unix -For Unix - make sure you have a C++ compiler available. g++ works fine. - $ cd unix +Make sure you have a C - and C++ compiler available. gcc and g++ works fine. + +Before compilation can take place YAZ must be installed. It goes, roughly, +like this: + + $ cd yaz- $ ./configure $ make + $ cd .. + +Then, build YAZ++: + + $ cd yaz++- + $ ./configure + $ make + +o Installation, Windows + +YAZ++ for WIN32 should run on Windows 95/98/2K and Windows NT 4.0. +Yaz++ was built using Microsoft Visual C++ 6.0. Other compilers +should work but makefile/project files will have to be created for +those compilers. + + Workspace yazxx.dsw includes the projects + yazxx.dsp - builds yazxx.dll + yazclient.dsp - builds yazmyclient.exe + yazserver.dsp - builds yazmyserver.exe + yazproxy.dsp - builds yazproxy.exe + +o About the proxy.. + +For the proxy the actual target is determined in by the OtherInfo +part of the InitRequest. We've defined an OID for this which we call +PROXY. OID is 1.2.840.10003.10.1000.81.1. + + OtherInformation ::= [201] IMPLICIT SEQUENCE OF SEQUENCE{ + category [1] IMPLICIT InfoCategory OPTIONAL, + information CHOICE{ + characterInfo [2] IMPLICIT InternationalString, + binaryInfo [3] IMPLICIT OCTET STRING, + externallyDefinedInfo [4] IMPLICIT EXTERNAL, + oid [5] IMPLICIT OBJECT IDENTIFIER}} +-- + InfoCategory ::= SEQUENCE{ + categoryTypeId [1] IMPLICIT OBJECT IDENTIFIER OPTIONAL, + categoryValue [2] IMPLICIT INTEGER} + +The InfoCategory is present with categoryTypeId set to the PROXY OID +and categoryValue set to 0. The information in OtherInformation uses +characterInfo to represent the target using the form target[:port][/db]. + +For the client that doesn't set the PROXY OtherInformation, a default +target can be specified using option -t for proxy. + +Example: + We start the proxy so that it listens on port 9000. The default + target is Bell Labs Library unless it is specified by a client in + the InitRequest. + + $ ./yaz-proxy -t z3950.bell-labs.com/books @:9000 + + The client is started and talks to the proxy without specifying + a target. Hence this client will talk to the Bell Labs server. + $ ./yaz-client localhost:9000 -For Windows. The software was build using Microsoft Visual C++ 5.0 and -6.0. Other compilers should work but the makefile will have to be -modified. - > cd win - > nmake (Visual C++ makefile not yet created) + The client is started and it specifies the actual target itself. + $ ./yaz-client -p localhost:9000 bagel.indexdata.dk/gils + For ZAP the equivalent would be + proxy=localhost:9000 + target=bagel.indexdata.dk/gils + Simple, huh!