projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: use yaz_iconv_open instead of iconv_open
[yaz-moved-to-github.git]
/
zoom
/
zoomtst8.c
diff --git
a/zoom/zoomtst8.c
b/zoom/zoomtst8.c
index
81c1173
..
2f500b7
100644
(file)
--- a/
zoom/zoomtst8.c
+++ b/
zoom/zoomtst8.c
@@
-1,5
+1,5
@@
/*
/*
- * $Id: zoomtst8.c,v 1.1 2001-12-30 22:21:11 adam Exp $
+ * $Id: zoomtst8.c,v 1.3 2002-05-21 08:36:04 adam Exp $
*
* Asynchronous multi-target client doing scan
*/
*
* Asynchronous multi-target client doing scan
*/
@@
-39,10
+39,16
@@
int main(int argc, char **argv)
/* connect and init */
ZOOM_connection_connect (z[i], argv[1+i], 0);
/* connect and init */
ZOOM_connection_connect (z[i], argv[1+i], 0);
+
}
}
- /* search all */
+ /* scan all */
for (i = 0; i<no; i++)
for (i = 0; i<no; i++)
+ {
+ /* set number of scan terms to be returned. */
+ ZOOM_connection_option_set (z[i], "number", "7");
+ /* and perform scan */
s[i] = ZOOM_connection_scan (z[i], argv[argc-1]);
s[i] = ZOOM_connection_scan (z[i], argv[argc-1]);
+ }
/* network I/O. pass number of connections and array of connections */
while (ZOOM_event (no, z))
/* network I/O. pass number of connections and array of connections */
while (ZOOM_event (no, z))
@@
-58,7
+64,7
@@
int main(int argc, char **argv)
errmsg, error, addinfo);
else
{
errmsg, error, addinfo);
else
{
- int j;
+ size_t j;
printf ("%s\n", ZOOM_connection_option_get(z[i], "host"));
for (j = 0; j<ZOOM_scanset_size (s[i]); j++)
{
printf ("%s\n", ZOOM_connection_option_get(z[i], "host"));
for (j = 0; j<ZOOM_scanset_size (s[i]); j++)
{
@@
-67,7
+73,6
@@
int main(int argc, char **argv)
term = ZOOM_scanset_term (s[i], j, &occur, &len);
if (term)
printf ("%d %.*s %d\n", j, len, term, occur);
term = ZOOM_scanset_term (s[i], j, &occur, &len);
if (term)
printf ("%d %.*s %d\n", j, len, term, occur);
-
}
}
}
}
}
}