X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zoom%2Fzoomtst3.c;h=0502861656125b38c008be0a3f485ba9ed9fcac7;hb=70c49c4cc7bd32eeaed7b88a82f43d50ee28ff20;hp=b52d1d1e2b45e2b54a261d10646501ecd6fd8ee4;hpb=bc66c2a11aa31c16f46c49100e99dc9b7e940faf;p=yaz-moved-to-github.git diff --git a/zoom/zoomtst3.c b/zoom/zoomtst3.c index b52d1d1..0502861 100644 --- a/zoom/zoomtst3.c +++ b/zoom/zoomtst3.c @@ -1,5 +1,5 @@ /* - * $Id: zoomtst3.c,v 1.2 2001-10-24 12:24:43 adam Exp $ + * $Id: zoomtst3.c,v 1.6 2002-02-20 14:40:42 adam Exp $ * * Asynchronous multi-target client doing search and piggyback retrieval */ @@ -16,9 +16,9 @@ int main(int argc, char **argv) { int i; int no = argc-2; - Z3950_connection z[500]; /* allow at most 500 connections */ - Z3950_resultset r[500]; /* and result sets .. */ - Z3950_options o = Z3950_options_create (); + ZOOM_connection z[500]; /* allow at most 500 connections */ + ZOOM_resultset r[500]; /* and result sets .. */ + ZOOM_options o = ZOOM_options_create (); if (argc < 3) { @@ -30,31 +30,34 @@ int main(int argc, char **argv) no = 500; /* async mode */ - Z3950_options_set (o, "async", "1"); + ZOOM_options_set (o, "async", "1"); /* get first 10 records of result set (using piggyback) */ - Z3950_options_set (o, "count", "10"); + ZOOM_options_set (o, "count", "10"); /* preferred record syntax */ - Z3950_options_set (o, "preferredRecordSyntax", "usmarc"); - Z3950_options_set (o, "elementSetName", "F"); + ZOOM_options_set (o, "preferredRecordSyntax", "usmarc"); + ZOOM_options_set (o, "elementSetName", "F"); /* connect to all */ for (i = 0; i